MachineName Property (MessageQueue)
Gets or sets the name of the computer where the Message Queuing queue is located.
Syntax
'Declaration <MessagingDescriptionAttribute("Specifies the machine where the queue referenced by this object is located.")> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <BrowsableAttribute(False)> Public Property MachineName As String
'Usage Dim instance As MessageQueue Dim value As String instance.MachineName = value value = instance.MachineName
[MessagingDescription("Specifies the machine where the queue referenced by this object is located.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [Browsable(false)] public string MachineName {get; set;}
[MessagingDescription("Specifies the machine where the queue referenced by this object is located.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [Browsable(false)] 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
Exception | Description |
---|---|
System.ArgumentException | The MachineName is null. |
System.ArgumentException | The name of the computer is not valid, possibly because the syntax is incorrect. |
MessageQueueException | 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