Compartilhar via


JobRouterAdministrationClient.GetClassificationPolicyAsync Método

Definição

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

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

Parâmetros

classificationPolicyId
String

A ID da política de classificação

cancellationToken
CancellationToken

(Opcional) O token de cancelamento a ser usado.

Retornos

Exceções

classificationPolicyId é nulo.

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

Aplica-se a