OperationResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an operation that runs asynchronously on a cloud service. Cloud
services use long-running operations to allow users to start an operation
with one request and then monitor progress of the operation until it has
completed. OperationResult enables waiting for completion of
long-running operations. Client libraries provide derived types that add
properties such as Value
or Status
as applicable
for a given service operation.
public abstract class OperationResult
type OperationResult = class
Public MustInherit Class OperationResult
- Inheritance
-
OperationResult
Constructors
OperationResult(PipelineResponse) |
Creates a new instance of OperationResult. |
Properties
HasCompleted |
Gets a value that indicates whether the operation has completed. |
RehydrationToken |
Gets a token that can be used to rehydrate the operation. |
Methods
GetRawResponse() |
Gets the PipelineResponse corresponding to the most recent update received from the service. |
SetRawResponse(PipelineResponse) |
Update the value returned from GetRawResponse(). |
UpdateStatus(RequestOptions) |
Sends a request to the service to get the current status of the operation and updates HasCompleted and other relevant properties. |
UpdateStatusAsync(RequestOptions) |
Sends a request to the service to get the current status of the operation and updates HasCompleted and other relevant properties. |
WaitForCompletion(CancellationToken) |
Waits for the operation to complete processing on the service. |
WaitForCompletionAsync(CancellationToken) |
Waits for the operation to complete processing on the service. |
Applies to
Azure SDK for .NET