Freigeben über


BatchAccountCollection.GetAsync(String, CancellationToken) Methode

Definition

Ruft Informationen zum angegebenen Batch-Konto ab.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}
  • Vorgangs-IdBatchAccount_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.BatchAccountResource>> GetAsync (string accountName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.BatchAccountResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Batch.BatchAccountResource>>
Public Overridable Function GetAsync (accountName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BatchAccountResource))

Parameter

accountName
String

Der Name des Batch-Kontos.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

accountName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

accountName ist NULL.

Gilt für: