Partilhar via


BillingAccountPolicyCollection.GetAsync(String, CancellationToken) Método

Definição

Obter Política de Conta de Cobrança.

  • Caminho da Solicitação/provedores/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Subscription/policies/default
  • IdBillingAccount_GetPolicy de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.BillingAccountPolicyResource>> GetAsync (string billingAccountId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.BillingAccountPolicyResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Subscription.BillingAccountPolicyResource>>
Public Overridable Function GetAsync (billingAccountId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BillingAccountPolicyResource))

Parâmetros

billingAccountId
String

ID da Conta de Cobrança.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

billingAccountId é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

billingAccountId é nulo.

Aplica-se a