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



System.Messaging Namespace > MessageQueue Class > GetPublicQueues Method : GetPublicQueues(MessageQueueCriteria) Method
A MessageQueueCriteria that contains the criteria used to filter the queues.
Retrieves all the public queues on the network that meet the specified criteria.
Syntax
'Declaration
 
Public Overloads Shared Function GetPublicQueues( _
   ByVal criteria As MessageQueueCriteria _
) As MessageQueue()
'Usage
 
Dim criteria As MessageQueueCriteria
Dim value() As MessageQueue
 
value = MessageQueue.GetPublicQueues(criteria)
public static MessageQueue[] GetPublicQueues( 
   MessageQueueCriteria criteria
)
public:
static array<MessageQueue^>^ GetPublicQueues( 
   MessageQueueCriteria^ criteria
) 

Parameters

criteria
A MessageQueueCriteria that contains the criteria used to filter the queues.

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