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



System.Messaging Namespace > MessageQueue Class > GetPublicQueues Method : GetPublicQueues() Method
Retrieves all the public queues on the network.
Syntax
'Declaration
 
Public Overloads Shared Function GetPublicQueues() As MessageQueue()
'Usage
 
Dim value() As MessageQueue
 
value = MessageQueue.GetPublicQueues()
public static MessageQueue[] GetPublicQueues()
public:
static array<MessageQueue^>^ GetPublicQueues(); 

Return Value

An array of MessageQueue objects that reference the retrieved public queues.
Exceptions
ExceptionDescription
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
Overload List