RequestOptions RequestOptions RequestOptions Class

Definition

Encapsulates options that can be specified for different requests issued to the Azure Cosmos DB service.

public sealed class RequestOptions
type RequestOptions = class
Public NotInheritable Class RequestOptions
Inheritance
RequestOptionsRequestOptionsRequestOptions

Remarks

Some of these options are valid for specific operations only. For example,

PreTriggerInclude can be used only on create, replace and delete operations on a Document or Attachment.

ETag, while valid on Replace* and Delete* operations, would have no impact on a Read*, CreateQuery* or Create* operations.

Constructors

RequestOptions() RequestOptions() RequestOptions()

Properties

AccessCondition AccessCondition AccessCondition

Gets or sets the condition (ETag) associated with the request in the Azure Cosmos DB service.

ConsistencyLevel ConsistencyLevel ConsistencyLevel

Gets or sets the consistency level required for the request in the Azure Cosmos DB service.

DisableRUPerMinuteUsage DisableRUPerMinuteUsage DisableRUPerMinuteUsage

Gets or sets the DisableRUPerMinuteUsage for the current request in the Azure Cosmos DB service.

EnableScriptLogging EnableScriptLogging EnableScriptLogging

Gets or sets the EnableScriptLogging for the current request in the Azure Cosmos DB service.

IndexingDirective IndexingDirective IndexingDirective

Gets or sets the indexing directive (Include or Exclude) for the request in the Azure Cosmos DB service.

JsonSerializerSettings JsonSerializerSettings JsonSerializerSettings

Gets or sets the JsonSerializerSettings for the current request used to deserialize the document. If null, uses the default serializer settings set up in the DocumentClient.

OfferEnableRUPerMinuteThroughput OfferEnableRUPerMinuteThroughput OfferEnableRUPerMinuteThroughput

Gets or sets the OfferEnableRUPerMinuteThroughput for a collection in the Azure Cosmos DB service

OfferThroughput OfferThroughput OfferThroughput

Gets or sets the offer throughput provisioned for a collection in measurement of Requests-per-Unit in the Azure Cosmos DB service.

OfferType OfferType OfferType

Gets or sets the offer type for the resource in the Azure Cosmos DB service.

PartitionKey PartitionKey PartitionKey

Gets or sets the PartitionKey for the current request in the Azure Cosmos DB service.

PopulatePartitionKeyRangeStatistics PopulatePartitionKeyRangeStatistics PopulatePartitionKeyRangeStatistics

Gets or sets the PopulatePartitionKeyRangeStatistics for document collection read requests in the Azure Cosmos DB service.

PopulateQuotaInfo PopulateQuotaInfo PopulateQuotaInfo

Gets or sets the PopulateQuotaInfo for document collection read requests in the Azure Cosmos DB service.

PostTriggerInclude PostTriggerInclude PostTriggerInclude

Gets or sets the trigger to be invoked after the operation in the Azure Cosmos DB service.

PreTriggerInclude PreTriggerInclude PreTriggerInclude

Gets or sets the trigger to be invoked before the operation in the Azure Cosmos DB service.

ResourceTokenExpirySeconds ResourceTokenExpirySeconds ResourceTokenExpirySeconds

Gets or sets the expiry time for resource token. Used when creating/updating/reading permissions in the Azure Cosmos DB service.

SessionToken SessionToken SessionToken

Gets or sets the token for use with session consistency in the Azure Cosmos DB service.

SharedOfferThroughput SharedOfferThroughput SharedOfferThroughput

Gets or sets shared offer throughput on a collection.

Applies to