Udostępnij za pośrednictwem


OperationResult Class

Definition

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
public abstract class OperationResult : System.ClientModel.ClientResult
type OperationResult = class
type OperationResult = class
    inherit ClientResult
Public MustInherit Class OperationResult
Public MustInherit Class OperationResult
Inherits ClientResult
Inheritance
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.

GetRawResponse()

Gets the PipelineResponse received from the service.

(Inherited from ClientResult)
SetRawResponse(PipelineResponse)

Update the value returned from GetRawResponse().

SetRawResponse(PipelineResponse)

Update the value returned from GetRawResponse().

(Inherited from ClientResult)
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