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



In This Topic
    MachineName Property (MessageQueue)
    In This Topic
    Gets or sets the name of the computer where the Message Queuing queue is located.
    Syntax
    'Declaration
     
    
    Public Property MachineName As String
    'Usage
     
    
    Dim instance As MessageQueue
    Dim value As String
     
    instance.MachineName = value
     
    value = instance.MachineName
    public string MachineName {get; set;}
    public:
    property String^ MachineName {
       String^ get();
       void set (    String^ value);
    }

    Property Value

    The name of the computer where the queue is located. The Message Queuing default is ".", the local computer.
    Exceptions
    ExceptionDescription
    The MachineName is null.
    The name of the computer is not valid, possibly because the syntax is incorrect.
    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