System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / GetPublicQueuesByMachine Method
The name of the computer that contains the set of public queues to be retrieved.



In This Topic
    GetPublicQueuesByMachine Method
    In This Topic
    Retrieves all the public queues that reside on the specified computer.
    Syntax
    'Declaration
     
    
    Public Shared Function GetPublicQueuesByMachine( _
       ByVal machineName As String _
    ) As MessageQueue()
    'Usage
     
    
    Dim machineName As String
    Dim value() As MessageQueue
     
    value = MessageQueue.GetPublicQueuesByMachine(machineName)
    public static MessageQueue[] GetPublicQueuesByMachine( 
       string machineName
    )
    public:
    static array<MessageQueue^>^ GetPublicQueuesByMachine( 
       String^ machineName
    ) 

    Parameters

    machineName
    The name of the computer that contains the set of public queues to be retrieved.

    Return Value

    An array of MessageQueue objects that reference the public queues on the computer.
    Exceptions
    ExceptionDescription
    The machineName parameter has incorrect syntax.
    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