MSMQQuery

 

Updated: July 19, 2016

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The MSMQQuery object provides a method for creating and initializing an MSMQQueueInfos object that defines a query. The MSMQQueueInfos object stores search criteria and other information needed for querying the directory service to locate existing public queues that satisfy the search criteria specified.

Queries can be based on one or more of the following queue properties.

  • Queue identifier

  • Service type

  • Queue label

  • Create time

  • Modify time

  • Multicast address

The results of a query are referred to as a collection of queues.

The following table lists the methods of the MSMQQuery object.

MethodDescription
MSMQQuery.LookupQueueReturns an MSMQQueueInfos object defining a query for locating public queues that satisfy the search criteria specified.

Windows NT/2000/XP: Included in Windows NT 4.0 SP3 and later.

Windows 95/98/Me: Included in Windows 95 and later.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib.

Message Queuing COM Components
MSMQQueueInfos

Community Additions

ADD
Show: