JobRouterAdministrationClient.GetQueue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetQueue(String, RequestContext) |
[Protocol Method] Retrieves an existing queue by Id.
|
GetQueue(String, CancellationToken) |
Retrieves an existing queue by Id. |
GetQueue(String, RequestContext)
[Protocol Method] Retrieves an existing queue by Id.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetQueue(String, CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.Response GetQueue (string queueId, Azure.RequestContext context);
abstract member GetQueue : string * Azure.RequestContext -> Azure.Response
override this.GetQueue : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetQueue (queueId As String, context As RequestContext) As Response
Parameters
- queueId
- String
Id of a queue.
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
queueId
is null.
queueId
is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetQueue(String, CancellationToken)
Retrieves an existing queue by Id.
public virtual Azure.Response<Azure.Communication.JobRouter.RouterQueue> GetQueue (string queueId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetQueue : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.RouterQueue>
override this.GetQueue : string * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.RouterQueue>
Public Overridable Function GetQueue (queueId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RouterQueue)
Parameters
- queueId
- String
Id of a queue.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
queueId
is null.
queueId
is an empty string, and was expected to be non-empty.