MessageQueueCriteria.Label Property

Definition

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

public:
 property System::String ^ Label { System::String ^ get(); void set(System::String ^ value); };
public string Label { get; set; }
member this.Label : string with get, set
Public Property Label As String

Property Value

The queues' label.

Exceptions

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

Remarks

A message queue's label is an application-defined description of the queue. It does not have any intrinsic meaning to Message Queuing.

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

Applies to

See also