System.Messaging Reference (Document! X Sample)
MessageQueue Constructor(String,QueueAccessMode)



System.Messaging Namespace > MessageQueue Class > MessageQueue Constructor : MessageQueue Constructor(String,QueueAccessMode)
The location of the queue referenced by this MessageQueue, which can be "." for the local computer.
One of the QueueAccessMode values.
Initializes a new instance of the MessageQueue class.
Syntax
'Declaration
 
Public Function New( _
   ByVal path As String, _
   ByVal accessMode As QueueAccessMode _
)
'Usage
 
Dim path As String
Dim accessMode As QueueAccessMode
 
Dim instance As New MessageQueue(path, accessMode)
public MessageQueue( 
   string path,
   QueueAccessMode accessMode
)
public:
MessageQueue( 
   String^ path,
   QueueAccessMode accessMode
)

Parameters

path
The location of the queue referenced by this MessageQueue, which can be "." for the local computer.
accessMode
One of the QueueAccessMode values.
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
Overload List