ItemRequestOptions Class

Definition

Cosmos item request options

public class ItemRequestOptions : Microsoft.Azure.Cosmos.RequestOptions
type ItemRequestOptions = class
    inherit RequestOptions
Public Class ItemRequestOptions
Inherits RequestOptions
Inheritance
ItemRequestOptions

Constructors

ItemRequestOptions()

Properties

ConsistencyLevel

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

EnableContentResponseOnWrite

Gets or sets the boolean to only return the headers and status code in the Cosmos DB response for write item operation like Create, Upsert, Patch and Replace. Setting the option to false will cause the response to have a null resource. This reduces networking and CPU load by not sending the resource back over the network and serializing it on the client.

IfMatchEtag

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

(Inherited from RequestOptions)
IfNoneMatchEtag

Gets or sets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.

(Inherited from RequestOptions)
IndexingDirective

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

PostTriggers

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

PreTriggers

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

Properties

Application opted Cosmos request context that flow through with the RequestMessage. Context will be available through handlers.

(Inherited from RequestOptions)
SessionToken

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

Applies to