ClientResult Class

Definition

Represents the result of a cloud service operation.

public class ClientResult
type ClientResult = class
Public Class ClientResult
Inheritance
ClientResult
Derived

Constructors

ClientResult()

Create a new instance of ClientResult.

ClientResult(PipelineResponse)

Creates a new instance of ClientResult from a service response.

Methods

FromOptionalValue<T>(T, PipelineResponse)

Creates a new instance of ClientResult<T> that holds the provided model value, if any, and the PipelineResponse received from the service. This method is used to create a return value for a service method representing a service operation that may or may not contain a payload. Callers of the client's service method must check whether Value is null to determine whether the service provided a value in its response. Nullable annotations indicate to the end-user the need to check whether Value is null.

FromResponse(PipelineResponse)

Creates a new instance of ClientResult that holds the PipelineResponse received from the service.

FromValue<T>(T, PipelineResponse)

Creates a new instance of ClientResult<T> that holds the provided model value and PipelineResponse received from the service.

GetRawResponse()

Gets the PipelineResponse received from the service.

SetRawResponse(PipelineResponse)

Update the value returned from GetRawResponse().

Applies to