System.Messaging Reference (Document! X Sample)
Label Property (Message)



System.Messaging Namespace > Message Class : Label Property
Gets or sets an application-defined Unicode string that describes the message.
Syntax
'Declaration
 
Public Property Label As String
'Usage
 
Dim instance As Message
Dim value As String
 
instance.Label = value
 
value = instance.Label
public string Label {get; set;}
public:
property String^ Label {
   String^ get();
   void set (    String^ value);
}

Property Value

The label of the message. The default is an empty string ("").
Exceptions
ExceptionDescription
The message queue is filtered to ignore the Label property.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Message Class
Message Members