Uređivanje

Dijeli putem


MessageQueueCriteria.Category Property

Definition

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

public:
 property Guid Category { Guid get(); void set(Guid value); };
public Guid Category { get; set; }
member this.Category : Guid with get, set
Public Property Category As Guid

Property Value

The queues' category.

Exceptions

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

Remarks

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.

Applies to

See also