MessageQueuePermission Constructor (MessageQueuePermissionAccess, String^)
.NET Framework (current version)
Initializes a new instance of the MessageQueuePermission class with the specified access levels and the path of the queue.
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
Available since 1.1
Show: