MessageQueuePermission Constructor (MessageQueuePermissionAccess, String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public MessageQueuePermission(
	MessageQueuePermissionAccess permissionAccess,
	string path
)

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: