Compartilhar via


JobRouterAdministrationClient.CreateExceptionPolicyAsync Método

Definição

Cria uma nova política de exceção.

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

Parâmetros

options
CreateExceptionPolicyOptions

(Opcional) Opções para criar uma política de exceção.

cancellationToken
CancellationToken

(Opcional) O token de cancelamento a ser usado.

Retornos

Exceções

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

Aplica-se a