MessageQueuePermissionEntry.Category Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the queue category.

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

public string Category { get; }

Property Value

Type: System.String

The queue category (Message Queuing type identifier), which allows an application to categorize its queues.

The following code example displays the value of a message queue permission entry's Category 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.MachineName,
    queue.Label,
    queue.Category.ToString());

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

.NET Framework
Available since 1.1
Return to top
Show: