Compartilhar via


JobRouterAdministrationClient.GetQueueAsync(String, CancellationToken) Método

Definição

Recupera uma fila existente por ID.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.Models.RouterQueue>> GetQueueAsync (string queueId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetQueueAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.Models.RouterQueue>>
override this.GetQueueAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.JobRouter.Models.RouterQueue>>
Public Overridable Function GetQueueAsync (queueId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RouterQueue))

Parâmetros

queueId
String

Id da fila a ser recuperada.

cancellationToken
CancellationToken

(Opcional) O token de cancelamento a ser usado.

Retornos

Exceções

queueId é nulo.

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

Aplica-se a