Freigeben über


BatchExtensions.GetBatchAccount Methode

Definition

Ruft Informationen zum angegebenen Batch-Konto ab.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}
  • Vorgang IdBatchAccount_Get
public static Azure.Response<Azure.ResourceManager.Batch.BatchAccountResource> GetBatchAccount (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string accountName, System.Threading.CancellationToken cancellationToken = default);
static member GetBatchAccount : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Batch.BatchAccountResource>
<Extension()>
Public Function GetBatchAccount (resourceGroupResource As ResourceGroupResource, accountName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BatchAccountResource)

Parameter

resourceGroupResource
ResourceGroupResource

Der ResourceGroupResource instance, für den die Methode ausgeführt wird.

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: