Compartilhar via


JobRouterAdministrationClient.CreateExceptionPolicy Método

Definição

Cria ou atualiza uma política de exceção.

public virtual Azure.Response<Azure.Communication.JobRouter.Models.ExceptionPolicy> CreateExceptionPolicy (Azure.Communication.JobRouter.CreateExceptionPolicyOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateExceptionPolicy : Azure.Communication.JobRouter.CreateExceptionPolicyOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.Models.ExceptionPolicy>
override this.CreateExceptionPolicy : Azure.Communication.JobRouter.CreateExceptionPolicyOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.JobRouter.Models.ExceptionPolicy>
Public Overridable Function CreateExceptionPolicy (Optional options As CreateExceptionPolicyOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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