Compartilhar via


JobRouterAdministrationClient.GetDistributionPolicyAsync Método

Definição

Recupera uma política de distribuição existente por ID.

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

Parâmetros

distributionPolicyId
String

A ID da política de distribuição

cancellationToken
CancellationToken

(Opcional) O token de cancelamento a ser usado.

Retornos

Exceções

distributionPolicyId é nulo.

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

Aplica-se a