System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / MessageQueue Constructor / MessageQueue Constructor(String)
The location of the queue referenced by this MessageQueue.



In This Topic
    MessageQueue Constructor(String)
    In This Topic
    Initializes a new instance of the MessageQueue class that references the Message Queuing queue at the specified path.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal path As String _
    )
    'Usage
     
    
    Dim path As String
     
    Dim instance As New MessageQueue(path)
    public MessageQueue( 
       string path
    )
    public:
    MessageQueue( 
       String^ path
    )

    Parameters

    path
    The location of the queue referenced by this MessageQueue.
    Exceptions
    ExceptionDescription
    The Path property is not valid, possibly because it has not been set.
    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