MessageQueuePermissionEntry.PermissionAccess Özellik

Tanım

İzin isteğinde kullanılan izin erişim düzeylerini alır.

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

Özellik Değeri

Değerlerin bit düzeyinde birleşimi MessageQueuePermissionAccess .

Örnekler

Aşağıdaki kod örneği, ileti kuyruğu izin girdisinin özelliğinin PermissionAccess değerini görüntüler.

       // 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);

Şunlara uygulanır