System.Messaging Reference (Document! X Sample)
Path Property (MessageQueue)



System.Messaging Namespace > MessageQueue Class : Path Property
Gets or sets the queue's path. Setting the Path causes the MessageQueue to point to a new queue.
Syntax
'Declaration
 
Public Property Path As String
'Usage
 
Dim instance As MessageQueue
Dim value As String
 
instance.Path = value
 
value = instance.Path
public string Path {get; set;}
public:
property String^ Path {
   String^ get();
   void set (    String^ value);
}

Property Value

The queue that is referenced by the MessageQueue. The default depends on which MessageQueue Constructor constructor you use; it is either null or is specified by the constructor's path parameter.
Exceptions
ExceptionDescription
The path is not valid, possibly because the syntax is not valid.
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

MessageQueue Class
MessageQueue Members