Compartilhar via


JobRouterAdministrationClient.CreateDistributionPolicy Método

Definição

Cria uma política de distribuição.

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