Compartilhar via


JobRouterAdministrationClient.GetExceptionPolicyAsync Método

Definição

Recupera uma política de exceção existente por Id.

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

Parâmetros

exceptionPolicyId
String

ID da política de exceção a ser recuperada.

cancellationToken
CancellationToken

(Opcional) O token de cancelamento a ser usado.

Retornos

Exceções

exceptionPolicyId é nulo.

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

Aplica-se a