Rediger

Del via


MessageQueueInstaller.Category Property

Definition

Gets or sets an implementation-specific queue type.

public:
 property Guid Category { Guid get(); void set(Guid value); };
[System.ComponentModel.TypeConverter("System.ComponentModel.GuidConverter, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public Guid Category { get; set; }
[System.ComponentModel.TypeConverter("System.ComponentModel.GuidConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public Guid Category { get; set; }
[System.ComponentModel.TypeConverter("System.ComponentModel.GuidConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
public Guid Category { get; set; }
[<System.ComponentModel.TypeConverter("System.ComponentModel.GuidConverter, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>]
member this.Category : Guid with get, set
[<System.ComponentModel.TypeConverter("System.ComponentModel.GuidConverter, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>]
member this.Category : Guid with get, set
[<System.ComponentModel.TypeConverter("System.ComponentModel.GuidConverter, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")>]
member this.Category : Guid with get, set
Public Property Category As Guid

Property Value

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.

Attributes

Remarks

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}.

Applies to