DefaultPropertiesToSend.Label 属性

定义

获取或设置应用程序定义的、描述消息的字符串。Gets or sets an application-defined string that describes the message.

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

属性值

String

消息的标签。The label of the message. 默认值为空字符串("")。The default is an empty string ("").

属性

注解

例如,消息标签可用于显示目的,或根据标签值有选择地处理消息。A message label can be used for display purposes, for example, or to selectively process messages based on the label value. 消息标签的最大长度为249个 Unicode 字符。The maximum length for a message label is 249 Unicode characters. 此标签在消息中不必是唯一的。The label does not need to be unique across messages.

消息队列和消息标签代表一个应用程序定义的值,可帮助在用户可读的字词中标识队列或消息。Message queue and message labels represent an application-defined value that can help to identify the queue or message in human-readable terms. 应用程序负责解释标签内容;它们对于消息队列应用程序没有内部意义。It is the responsibility of the application to interpret label contents; they have no intrinsic meaning to the Message Queuing application.

适用于

另请参阅