Partager via


CognitiveServicesAccountResource.GetCommitmentPlanAsync Méthode

Définition

Obtient les plans d’engagement spécifiés associés au compte Cognitive Services.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/commitmentPlans/{commitmentPlanName}
  • IdCommitmentPlans_Get d’opération
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))

Paramètres

commitmentPlanName
String

Nom du plan d’engagement associé au compte Cognitive Services.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

commitmentPlanName est une chaîne vide et devait être non vide.

commitmentPlanName a la valeur null.

S’applique à