MessageQueueCriteria.Label 属性

定义

获取或设置作为网络中队列的筛选依据的标签。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

属性值

String

队列的标签。The queues' label.

例外

应用程序在读取 Label 属性前未设置该属性。The application did not set the Label property before reading it.

注解

消息队列的标签是应用程序定义的队列描述。A message queue's label is an application-defined description of the queue. 它对于消息队列没有任何内部意义。It does not have any intrinsic meaning to Message Queuing.

如果在网络上搜索队列时只按标签进行筛选,则可以使用 GetPublicQueuesByLabel 专门为此目的而设计的方法。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. 如果要按多个包含标签的条件进行搜索,请设置此 Label 属性并将参数传递给 GetPublicQueuesIf you are searching by multiple criteria that include the label, set this Label property and pass the parameter into GetPublicQueues.

适用于

另请参阅