Compartilhar via


CognitiveServicesExtensions.GetCognitiveServicesCommitmentPlanAsync 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 static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesCommitmentPlanResource>> GetCognitiveServicesCommitmentPlanAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string commitmentPlanName, System.Threading.CancellationToken cancellationToken = default);
static member GetCognitiveServicesCommitmentPlanAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CognitiveServices.CognitiveServicesCommitmentPlanResource>>
<Extension()>
Public Function GetCognitiveServicesCommitmentPlanAsync (resourceGroupResource As ResourceGroupResource, commitmentPlanName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CognitiveServicesCommitmentPlanResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

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