語言

DefaultPropertiesToSend.Label 屬性

定義

取得或設定一個由應用程式定義的字串來描述訊息。

public:
 property System::String ^ Label { System::String ^ get(); void set(System::String ^ value); };
[System.Messaging.MessagingDescription("MsgLabel")]
public string Label { get; set; }
[<System.Messaging.MessagingDescription("MsgLabel")>]
member this.Label : string with get, set
Public Property Label As String

屬性值

訊息的標籤。 預設為空字串(“”)。

屬性

備註

訊息標籤可用於顯示用途,例如,或根據標籤值選擇性地處理訊息。 訊息標籤的最大長度為 249 個 Unicode 字元。 標籤不需要在不同訊息間是唯一的。

訊息佇列與訊息標籤代表應用程式定義的值,有助於以人類易讀的方式識別佇列或訊息。 應用程式負責解讀標籤內容;它們對訊息佇列應用程式本身沒有內在意義。

適用於

另請參閱