MessageQueuePermission Constructor (MessageQueuePermissionAccess, String)

 

Initializes a new instance of the MessageQueuePermission class with the specified access levels and the path of the queue.

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

new : 
        permissionAccess:MessageQueuePermissionAccess *
        path:string -> MessageQueuePermission

Parameters

permissionAccess
Type: System.Messaging.MessageQueuePermissionAccess

One of the MessageQueuePermissionAccess values.

path
Type: System.String

The path of the queue that is referenced by the MessageQueue.

The following code example creates a new instance of MessageQueuePermission.

// Create a new instance of MessageQueuePermission.
MessageQueuePermission permission = new MessageQueuePermission(
    MessageQueuePermissionAccess.Receive,
    ".\\exampleQueue");

.NET Framework
Available since 1.1
Return to top
Show: