Editar

Compartilhar via


MsmqMessage<T>.Label Property

Definition

Gets or sets a String that contains the message 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

Property Value

A String that contains the message label.

Examples

message.Label = "Message1 Label";
message.Label = "Message1 Label"

Remarks

The message label has no intrinsic meaning to Message Queuing (MSMQ). It is used to identify messages in a human-readable way. Your applications are responsible for interpreting message labels. You do not need to make the message label unique.

You can use the message label for various purposes, such as displaying it or selectively processing messages based on their labels.

Applies to