Compartilhar via


Método ManagementClient.GetOperationStatusAsync

Asynchronously returns the status of the specified operation.

Namespace: Microsoft.WindowsAzure.Management
Assembly: Microsoft.WindowsAzure.Management (em Microsoft.WindowsAzure.Management.dll)

Uso

'Uso
Dim instance As ManagementClient
Dim requestId As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of OperationStatusResponse)

returnValue = instance.GetOperationStatusAsync(requestId, cancellationToken)

Sintaxe

'Declaração
<DebuggerStepThroughAttribute> _
Public Function GetOperationStatusAsync ( _
    requestId As String, _
    cancellationToken As CancellationToken _
) As Task(Of OperationStatusResponse)
[DebuggerStepThroughAttribute] 
public Task<OperationStatusResponse> GetOperationStatusAsync (
    string requestId,
    CancellationToken cancellationToken
)
[DebuggerStepThroughAttribute] 
public:
virtual Task<OperationStatusResponse^>^ GetOperationStatusAsync (
    String^ requestId, 
    CancellationToken cancellationToken
) sealed
/** @attribute DebuggerStepThroughAttribute() */ 
public final Task<OperationStatusResponse> GetOperationStatusAsync (
    String requestId, 
    CancellationToken cancellationToken
)
DebuggerStepThroughAttribute 
public final function GetOperationStatusAsync (
    requestId : String, 
    cancellationToken : CancellationToken
) : Task<OperationStatusResponse>

Parâmetros

  • 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.

Valor de retorno

An OperationStatusResponse object that contains the status of the specified asynchronous operation.

Comentários

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.

Segurança de thread

Qualquer membro estático público (compartilhado no Visual Basic) desse tipo é thread-safe. Não há garantia de que qualquer membro de instância seja seguro para threads.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows 7 e Windows Server 2008

Plataformas de destino

Consulte também

Referência

Classe ManagementClient
Membros ManagementClient
Namespace Microsoft.WindowsAzure.Management