System.Messaging Reference (Document! X Sample)
GetPrivateQueuesByMachine Method



System.Messaging Namespace > MessageQueue Class : GetPrivateQueuesByMachine Method
The computer from which to retrieve the private queues.
Retrieves all the private queues on the specified computer.
Syntax
'Declaration
 
Public Shared Function GetPrivateQueuesByMachine( _
   ByVal machineName As String _
) As MessageQueue()
'Usage
 
Dim machineName As String
Dim value() As MessageQueue
 
value = MessageQueue.GetPrivateQueuesByMachine(machineName)
public static MessageQueue[] GetPrivateQueuesByMachine( 
   string machineName
)
public:
static array<MessageQueue^>^ GetPrivateQueuesByMachine( 
   String^ machineName
) 

Parameters

machineName
The computer from which to retrieve the private queues.

Return Value

An array of MessageQueue objects that reference the retrieved private queues.
Exceptions
ExceptionDescription
The machineName parameter is null or an empty string ("").
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

Reference

MessageQueue Class
MessageQueue Members