MessageQueuePermissionEntry.PermissionAccess Property

 

Gets the permission access levels used in the permissions request.

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

public MessageQueuePermissionAccess PermissionAccess { get; }

Property Value

Type: System.Messaging.MessageQueuePermissionAccess

A bitwise combination of the MessageQueuePermissionAccess values.

The following code example displays the value of a message queue permission entry's PermissionAccess property.

// Connect to a queue on the local computer.
MessageQueue queue = new MessageQueue(".\\exampleQueue");

// Create a new instance of MessageQueuePermissionEntry.
MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry(
    MessageQueuePermissionAccess.Receive,
    queue.MachineName,
    queue.Label,
    queue.Category.ToString());

// Display the value of the entry's PermissionAccess property.
Console.WriteLine("PermissionAccess: {0}", entry.PermissionAccess);

.NET Framework
Available since 1.1
Return to top
Show: