Partager via


StorSimpleManagementClient.GetOperationStatusAsync Méthode

Définition

L’option Obtenir l’état de la tâche retourne le status de l’ID de tâche spécifié. Après avoir appelé une tâche asynchrone, vous pouvez appeler Obtenir l’état de la tâche pour déterminer si la tâche a réussi, échoué ou est toujours en cours.

public System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStatusInfo> GetOperationStatusAsync(string taskId, System.Threading.CancellationToken cancellationToken);
abstract member GetOperationStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStatusInfo>
override this.GetOperationStatusAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.WindowsAzure.Management.StorSimple.Models.TaskStatusInfo>
Public Function GetOperationStatusAsync (taskId As String, cancellationToken As CancellationToken) As Task(Of TaskStatusInfo)

Paramètres

taskId
String

Obligatoire. ID de tâche pour la demande que vous souhaitez suivre.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Informations sur la tâche asynchrone

Implémente

S’applique à