Compartilhar via


Método IAutomationManagementClient.GetOperationResultStatusAsync

The Get Operation Status operation returns the status of the specified operation. After calling an asynchronous operation, you can call Get Operation Status to determine whether the operation has succeeded, failed, or is still in progress.

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

Uso

'Uso
Dim instance As IAutomationManagementClient
Dim operationStatusLink As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of LongRunningOperationResultResponse)

returnValue = instance.GetOperationResultStatusAsync(operationStatusLink, cancellationToken)

Sintaxe

'Declaração
Function GetOperationResultStatusAsync ( _
    operationStatusLink As String, _
    cancellationToken As CancellationToken _
) As Task(Of LongRunningOperationResultResponse)
Task<LongRunningOperationResultResponse> GetOperationResultStatusAsync (
    string operationStatusLink,
    CancellationToken cancellationToken
)
Task<LongRunningOperationResultResponse^>^ GetOperationResultStatusAsync (
    String^ operationStatusLink, 
    CancellationToken cancellationToken
)
Task<LongRunningOperationResultResponse> GetOperationResultStatusAsync (
    String operationStatusLink, 
    CancellationToken cancellationToken
)
function GetOperationResultStatusAsync (
    operationStatusLink : String, 
    cancellationToken : CancellationToken
) : Task<LongRunningOperationResultResponse>

Parâmetros

  • operationStatusLink
    Location value returned by the Begin operation.
  • cancellationToken
    Cancellation token.

Valor de retorno

A standard service response for long running operations.

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

Interface IAutomationManagementClient
Membros IAutomationManagementClient
Namespace Microsoft.WindowsAzure.Management.Automation