MessageQueuePermissionEntry.PermissionAccess Eigenschaft

Definition

Ruft die in der Berechtigungsanforderung verwendeten Zugriffsebenen für Berechtigungen ab.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

Eigenschaftswert

Eine bitweise Kombination der MessageQueuePermissionAccess-Werte.A bitwise combination of the MessageQueuePermissionAccess values.

Beispiele

Im folgenden Codebeispiel wird der Wert für die-Eigenschaft einer Eingabe Warteschlangen- PermissionAccess Berechtigung angezeigt.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);

Gilt für: