Compartilhar via


JobRouterAdministrationClient.CreateDistributionPolicyAsync Método

Definição

Cria uma política de distribuição.

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

Parâmetros

options
CreateDistributionPolicyOptions

Opções adicionais que podem ser usadas durante a criação da política de distribuiçã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