ComputeManagementClient.GetOperationStatusAsync Method (String, CancellationToken)
Asynchronously returns the status of the specified operation.
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
public Task<OperationStatusResponse> GetOperationStatusAsync(
string requestId,
CancellationToken cancellationToken
)
public:
virtual Task<OperationStatusResponse^>^ GetOperationStatusAsync(
String^ requestId,
CancellationToken cancellationToken
) sealed
abstract GetOperationStatusAsync :
requestId:string *
cancellationToken:CancellationToken -> Task<OperationStatusResponse>
override GetOperationStatusAsync :
requestId:string *
cancellationToken:CancellationToken -> Task<OperationStatusResponse>
Public Function GetOperationStatusAsync (
requestId As String,
cancellationToken As CancellationToken
) As Task(Of OperationStatusResponse)
Parameters
requestId
Type: System.StringThe request ID of the asynchronous request.
cancellationToken
Type: System.Threading.CancellationTokenThe cancellation token.
Return Value
Type: System.Threading.Tasks.Task<OperationStatusResponse>
An T:Microsoft.WindowsAzure.Management.Compute.Models.ComputeOperationStatusResponse object that contains the status of the operation.
Implements
IComputeManagementClient.GetOperationStatusAsync(String, CancellationToken)
Remarks
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.
See Also
ComputeManagementClient Class
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top