System.Messaging Reference (Document! X Sample)
System.Messaging Namespace / MessageQueue Class / GetPublicQueuesByCategory Method
A System.Guid that groups the set of queues to be retrieved.



In This Topic
    GetPublicQueuesByCategory Method
    In This Topic
    Retrieves all the public queues on the network that belong to the specified category.
    Syntax
    'Declaration
     
    
    Public Shared Function GetPublicQueuesByCategory( _
       ByVal category As Guid _
    ) As MessageQueue()
    'Usage
     
    
    Dim category As Guid
    Dim value() As MessageQueue
     
    value = MessageQueue.GetPublicQueuesByCategory(category)
    public static MessageQueue[] GetPublicQueuesByCategory( 
       Guid category
    )
    public:
    static array<MessageQueue^>^ GetPublicQueuesByCategory( 
       Guid category
    ) 

    Parameters

    category
    A System.Guid that groups the set of queues to be retrieved.

    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