共用方式為


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

適用於

另請參閱