Поделиться через


Метод IComputeManagementClient.GetOperationStatusAsync

Asynchronously returns the status of the specified operation.

Пространство имен: Microsoft.WindowsAzure.Management.Compute
Сборка: Microsoft.WindowsAzure.Management.Compute (в Microsoft.WindowsAzure.Management.Compute.dll)

Использование

'Применение
Dim instance As IComputeManagementClient
Dim requestId As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of OperationStatusResponse)

returnValue = instance.GetOperationStatusAsync(requestId, cancellationToken)

Синтаксис

'Декларация
Function GetOperationStatusAsync ( _
    requestId As String, _
    cancellationToken As CancellationToken _
) As Task(Of OperationStatusResponse)
Task<OperationStatusResponse> GetOperationStatusAsync (
    string requestId,
    CancellationToken cancellationToken
)
Task<OperationStatusResponse^>^ GetOperationStatusAsync (
    String^ requestId, 
    CancellationToken cancellationToken
)
Task<OperationStatusResponse> GetOperationStatusAsync (
    String requestId, 
    CancellationToken cancellationToken
)
function GetOperationStatusAsync (
    requestId : String, 
    cancellationToken : CancellationToken
) : Task<OperationStatusResponse>

Параметры

  • requestId
    The request ID of the asynchronous request. The request ID is returned in the x-ms-request-id response header for every request.
  • cancellationToken
    The cancellation token.

Возвращаемое значение

An ComputeOperationStatusResponse object that contains the status of the operation.

Примечания

After calling an asynchronous operation, you can use this method to determine whether the operation has succeeded, failed, or is still in progress. If the asynchronous operation succeeds, the response includes the HTTP status code for the successful request. If the asynchronous operation failed, the response includes the HTTP status code for the failed request, and also includes error information about the failure.

For more information about obtaining the status of an operation, see Get Operation Status.

Многопоточное использование

Все открытые статические члены метода (Shared в Visual Basic) этого типа потокобезопасны. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.

Платформы

Платформы разработки

Windows Vista, Windows 7 и Windows Server 2008

Целевые платформы

См. также

Справочник

IComputeManagementClient - интерфейс
Члены IComputeManagementClient
Microsoft.WindowsAzure.Management.Compute - пространство имен