MessageQueuePermission Constructor (PermissionState)

MessageQueuePermission Constructor (PermissionState)

 

Initializes a new instance of the MessageQueuePermission class with the specified permission state.

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

public MessageQueuePermission(
	PermissionState state
)

Parameters

state
Type: System.Security.Permissions.PermissionState

One of the PermissionState values.

The following code example creates a new instance of MessageQueuePermission.

// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission(
    System.Security.Permissions.PermissionState.Unrestricted);

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