Επεξεργασία

Κοινή χρήση μέσω


MessageQueuePermissionEntry.PermissionAccess Property

Definition

Gets the permission access levels used in the permissions request.

public:
 property System::Messaging::MessageQueuePermissionAccess PermissionAccess { System::Messaging::MessageQueuePermissionAccess get(); };
public System.Messaging.MessageQueuePermissionAccess PermissionAccess { get; }
member this.PermissionAccess : System.Messaging.MessageQueuePermissionAccess
Public ReadOnly Property PermissionAccess As MessageQueuePermissionAccess

Property Value

A bitwise combination of the MessageQueuePermissionAccess values.

Examples

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 = gcnew MessageQueue(".\\exampleQueue");

       // Create a new instance of MessageQueuePermissionEntry.
       MessageQueuePermissionEntry^ entry = gcnew 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);

       queue->Close();
// 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);

Applies to