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



In This Topic
    GetPublicQueuesByLabel(String) Method
    In This Topic
    Retrieves all the public queues on the network that carry the specified label.
    Syntax
    'Declaration
     
    
    Public Shared Function GetPublicQueuesByLabel( _
       ByVal label As String _
    ) As MessageQueue()
    'Usage
     
    
    Dim label As String
    Dim value() As MessageQueue
     
    value = MessageQueue.GetPublicQueuesByLabel(label)
    public static MessageQueue[] GetPublicQueuesByLabel( 
       string label
    )
    public:
    static array<MessageQueue^>^ GetPublicQueuesByLabel( 
       String^ label
    ) 

    Parameters

    label
    A label 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.
    The label parameter is null.
    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