Category Property

MessageQueueInstaller.Category Property


Gets or sets an implementation-specific queue type.

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

[TypeConverterAttribute("System.ComponentModel.GuidConverter, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public Guid Category { get; set; }

Property Value

Type: System.Guid

A Guid that represents the queue category (or Message Queuing type identifier), which allows applications to categorize their queues according to how they are used. The default is Guid.empty.

The queue category enables an application to categorize associated queues according to the way they are used. The Category can be a null reference. You can also define a new category.

The Category property provides access to the Message Queuing type identifier property, which is associated with a particular queue and is read/write. You can use the NewGuid method to create a category value that is guaranteed to be unique across all Guid values. However, it is necessary only for the category value to be distinct from other categories, not from all other Guid values. For example, you can set the Category for one group of queues to {00000000-0000-0000-0000-000000000001} and the Category for another group to {00000000-0000-0000-0000-000000000002}.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft