Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MessageQueueCriteria.Category Property

Gets or sets the category by which to filter queues in the network.

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

public Guid Category { get; set; }

Property Value

Type: System.Guid
The queues' category.


The application did not set the Category property before reading it.

The queue category allows an application to categorize its queues. For example, you can place all Billing queues in one category and all Order queues in another. The Category property is application-defined and has no intrinsic meaning to Message Queuing.

If you are filtering only by category when searching the queues on the network, you can use the method GetPublicQueuesByCategory, which is specifically designed for this purpose. If you are searching by multiple criteria that include the category, set this Category property and pass the parameter into GetPublicQueues.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft