StoredProcedureResponse<TValue> Class

Definition

Represents the response returned from a database stored procedure in the Azure DocumentDB database service. Wraps the response body and headers.

public class StoredProcedureResponse<TValue> : Microsoft.Azure.Documents.Client.IStoredProcedureResponse<TValue>
Type Parameters
TValue

The returned value type of the stored procedure.

Inheritance
StoredProcedureResponse<TValue>
Implements

Remarks

Stored procedures can return any string output via the getContext().getResponse().setBody() method. This response body could be a serialized JSON object, or any other type. Within the .NET SDK, you can deserialize the response into a corresponding TValue type.

Constructors

StoredProcedureResponse<TValue>()

Constructor exposed for mocking purposes in Azure DocumentDB database service.

Properties

ActivityId

Gets the Activity ID of the request from the Azure DocumentDB database service.

CurrentResourceQuotaUsage

Gets the delimited string containing the usage of each resource type within the collection from the Azure DocumentDB database service.

IsRUPerMinuteUsed

Gets the flag associated with the response from the Azure DocumentDB database service whether this stored procedure request is served from Request Units(RUs)/minute capacity or not.

MaxResourceQuota

Gets the delimited string containing the quota of each resource type within the collection from the Azure DocumentDB database service.

RequestCharge

Gets the number of normalized Azure DocumentDB request units (RUs) charged from Azure DocumentDB database service.

Response

Gets the response of a stored procedure, serialized into the given type from the Azure DocumentDB database service.

ResponseHeaders

Gets the headers associated with the response from the Azure DocumentDB database service.

ScriptLog

Gets the output from stored procedure console.log() statements.

SessionToken

Gets the token for use with session consistency requests from the Azure DocumentDB database service.

StatusCode

Gets the request completion status code from the Azure DocumentDB database service.

Operators

Implicit(StoredProcedureResponse<TValue> to TValue)

Gets the resource implicitly from Azure DocumentDB database service.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)