Compartilhar via


JobRouterAdministrationClient.CreateClassificationPolicyAsync Método

Definição

Cria uma política de classificação.

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

Parâmetros

options
CreateClassificationPolicyOptions

(Opcional) Opções para criar a política de classificação. Usa semântica de patch de mesclagem: https://datatracker.ietf.org/doc/html/rfc7386.

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