System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / Label Property



In This Topic
    Label Property (MessageQueue)
    In This Topic
    Gets or sets the queue description.
    Syntax
    'Declaration
     
    
    Public Property Label As String
    'Usage
     
    
    Dim instance As MessageQueue
    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 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