Udostępnij przez


MessageQueuePermissionEntry.Path Właściwość

Definicja

Pobiera ścieżkę kolejki.

public:
 property System::String ^ Path { System::String ^ get(); };
public string Path { get; }
member this.Path : string
Public ReadOnly Property Path As String

Wartość właściwości

Kolejka, MessageQueuedo którego odwołuje się element .

Przykłady

Poniższy przykład kodu przedstawia wartość właściwości wpisu uprawnień Path kolejki komunikatów.

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

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

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.Path);

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

Dotyczy