Share via


CloudJob.GetTaskAsync Methode

Definition

Ruft die angegebene CloudTask ab.

public System.Threading.Tasks.Task<Microsoft.Azure.Batch.CloudTask> GetTaskAsync (string taskId, Microsoft.Azure.Batch.DetailLevel detailLevel = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetTaskAsync : string * Microsoft.Azure.Batch.DetailLevel * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.CloudTask>
Public Function GetTaskAsync (taskId As String, Optional detailLevel As DetailLevel = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CloudTask)

Parameter

taskId
String

Die ID des abzurufenden Vorgangs.

detailLevel
DetailLevel

Ein DetailLevel , der zum Steuern verwendet wird, welche Eigenschaften aus dem Dienst abgerufen werden.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Eine Auflistung von BatchClientBehavior Instanzen, die nach und detailLevelauf die CustomBehaviors Batch-Dienstanforderung angewendet werden.

cancellationToken
CancellationToken

A CancellationToken zum Steuern der Lebensdauer des asynchronen Vorgangs.

Gibt zurück

EinCloudTask, der Informationen zum angegebenen Azure Batch Vorgangs enthält.

Hinweise

Der Vorgang "Task abrufen" wird asynchron ausgeführt.

Gilt für: