Compartilhar via


CognitiveServicesAccountResource.GetCommitmentPlanAsync Método

Definição

Obtém os commitmentPlans especificados associados à conta dos Serviços Cognitivos.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}
  • Operação IdCommitmentPlans_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CommitmentPlanResource>> GetCommitmentPlanAsync (string commitmentPlanName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCommitmentPlanAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CommitmentPlanResource>>
override this.GetCommitmentPlanAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CommitmentPlanResource>>
Public Overridable Function GetCommitmentPlanAsync (commitmentPlanName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CommitmentPlanResource))

Parâmetros

commitmentPlanName
String

O nome do plano de compromisso associado à conta dos Serviços Cognitivos.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

commitmentPlanName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

commitmentPlanName é nulo.

Aplica-se a