Compartilhar via


CognitiveServicesCommitmentPlanCollection.GetAsync Método

Definição

Retorna um plano de compromisso dos Serviços Cognitivos especificado pelos parâmetros.

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

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