次の方法で共有


MessageQueuePermissionEntry.PermissionAccess プロパティ

定義

アクセス許可要求に使用するアクセス許可のアクセス レベルを取得します。

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

プロパティ値

MessageQueuePermissionAccess 値のビットごとの組み合わせ。

次のコード例では、メッセージ キューのアクセス許可エントリの プロパティの PermissionAccess 値を表示します。

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

適用対象