通过


MessageQueueCriteria.Label 属性

定义

获取或设置在网络中筛选队列的标签。

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

属性值

队列的标签。

例外

在读取属性之前, Label 应用程序未设置该属性。

注解

消息队列的标签是队列的应用程序定义说明。 消息队列没有任何固有含义。

如果在网络上搜索队列时仅按标签进行筛选,则可以使用专用于此目的的方法 GetPublicQueuesByLabel。 如果要搜索包含标签的多个条件,请设置此属性 Label 并将参数 GetPublicQueues传递到其中。

适用于

另请参阅