Freigeben über


BatchApplicationCollection.GetAsync(String, CancellationToken) Methode

Definition

Ruft Informationen zur angegebenen Anwendung ab.

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

Parameter

applicationName
String

Der Namen der Anwendung. Dies muss innerhalb des Kontos eindeutig sein.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

applicationName ist NULL.

Gilt für: