Share via


QueueManagementClient.GetQueue Method

[This is prerelease documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Looks up the specified queue and constructs the QueueClient to interact with the queue.

Namespace: Microsoft.ServiceBus
Assembly: Microsoft.ServiceBus (in microsoft.servicebus.dll)

Usage

    Dim credential As TransportClientEndpointBehavior
Dim queueUri As Uri
Dim returnValue As QueueClient

returnValue = QueueManagementClient.GetQueue(credential, queueUri)

Syntax

'Declaration
Public Shared Function GetQueue ( _
    credential As TransportClientEndpointBehavior, _
    queueUri As Uri _
) As QueueClient
public static QueueClient GetQueue (
    TransportClientEndpointBehavior credential,
    Uri queueUri
)
public:
static QueueClient^ GetQueue (
    TransportClientEndpointBehavior^ credential, 
    Uri^ queueUri
)
public static QueueClient GetQueue (
    TransportClientEndpointBehavior credential, 
    Uri queueUri
)
public static function GetQueue (
    credential : TransportClientEndpointBehavior, 
    queueUri : Uri
) : QueueClient

Parameters

  • credential
    The credentials to use for accessing the queue.
  • queueUri
    The URI of the service to retrieve.

Return Value

Returns a QueueClient that contains the queue client of the specified queue.

Remarks

This operation requires ‘Manage’, ‘Send’, or ‘Listen’ permission on the given Service Bus namespace URI.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

See Also

Reference

QueueManagementClient Class
QueueManagementClient Members
Microsoft.ServiceBus Namespace