Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft