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 字元。 標籤不需要在訊息之間是唯一的。

訊息佇列和訊息標籤代表應用程式定義的值,可協助以人類看得懂的詞彙識別佇列或訊息。 應用程式必須負責解譯標籤內容;它們對訊息佇列應用程式沒有內建意義。

適用於

另請參閱