Share via


ContainerRequestOptions Class

Definition

The cosmos container request options

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

Constructors

Name Description
ContainerRequestOptions()

Properties

Name Description
AddRequestHeaders

Gets or sets a delegate which injects/appends a custom header in the request.

(Inherited from RequestOptions)
AvailabilityStrategy

Cosmos availability strategy. Availability strategy allows the SDK to send out additional cross region requests to help reduce latency and increase availability. Currently there is one type of availability strategy, parallel request hedging. If there is a globally enabled availability strategy, setting one in the request options will override the global one.

(Inherited from RequestOptions)
CosmosThresholdOptions

Threshold values for Distributed Tracing. These values decides whether to generate operation level EventSource with request diagnostics or not.

(Inherited from RequestOptions)
ExcludeRegions

List of regions to be excluded routing the request to. This can be used to route a request to a specific region by excluding all other regions. If all regions are excluded, then the request will be routed to the primary/hub region.

(Inherited from RequestOptions)
IfMatchEtag

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

(Inherited from RequestOptions)
IfNoneMatchEtag

Most commonly used to detect changes to the resource Gets or sets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service.

(Inherited from RequestOptions)
PopulateQuotaInfo

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

PriorityLevel

Gets or sets the priority level for a request.

(Inherited from RequestOptions)
Properties

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

(Inherited from RequestOptions)

Methods

Name Description
ShallowCopy()

Clone RequestOptions.

(Inherited from RequestOptions)

Applies to