MessageQueuePermissionAttribute Constructor

MessageQueuePermissionAttribute Constructor (SecurityAction)

 

Initializes a new instance of the MessageQueuePermissionAttribute class.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public MessageQueuePermissionAttribute(
	SecurityAction action
)

Parameters

action
Type: System.Security.Permissions.SecurityAction

One of the SecurityAction values.

The following code example creates a new instance of MessageQueuePermissionAttribute.


// Create a new instance of MessageQueuePermissionAttribute.
MessageQueuePermissionAttribute attribute =
    new MessageQueuePermissionAttribute(
    System.Security.Permissions.SecurityAction.Assert);

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft