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



System.Messaging Namespace > MessageQueue Class > GetMessageQueueEnumerator Method : GetMessageQueueEnumerator(MessageQueueCriteria) Method
A MessageQueueCriteria that contains the criteria used to filter the available message queues.
Provides forward-only cursor semantics to enumerate through all public queues on the network that meet the specified criteria.
Syntax
'Declaration
 
Public Overloads Shared Function GetMessageQueueEnumerator( _
   ByVal criteria As MessageQueueCriteria _
) As MessageQueueEnumerator
'Usage
 
Dim criteria As MessageQueueCriteria
Dim value As MessageQueueEnumerator
 
value = MessageQueue.GetMessageQueueEnumerator(criteria)
public static MessageQueueEnumerator GetMessageQueueEnumerator( 
   MessageQueueCriteria criteria
)
public:
static MessageQueueEnumerator^ GetMessageQueueEnumerator( 
   MessageQueueCriteria^ criteria
) 

Parameters

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

Return Value

A MessageQueueEnumerator that provides a dynamic listing of the public message queues on the network that satisfy the restrictions specified by the criteria parameter.
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