System.Messaging Reference (Document! X Sample)



Label Property (MessageQueue)
Gets or sets the queue description.
Syntax
'Declaration
 
<MessagingDescriptionAttribute("Specifies a description of the queue.")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
Public Property Label As String
'Usage
 
Dim instance As MessageQueue
Dim value As String
 
instance.Label = value
 
value = instance.Label
[MessagingDescription("Specifies a description of the queue.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public string Label {get; set;}
[MessagingDescription("Specifies a description of the queue.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public:
property String^ Label {
   String^ get();
   void set (    String^ value);
}

Property Value

The label for the message queue. The default is an empty string ("").
Exceptions
ExceptionDescription
The label was set to an invalid value.
An error occurred when accessing a Message Queuing method.
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