MessageQueuePermissionEntry.Path Property

 

Gets the queue's path.

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public string Path { get; }

Property Value

Type: System.String

The queue that is referenced by the MessageQueue.

The following code example displays the value of a message queue permission entry's Path property.

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

.NET Framework
Available since 1.1
Return to top
Show: