RequestOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The default cosmos request options
public class RequestOptions
type RequestOptions = class
Public Class RequestOptions
- Inheritance
-
RequestOptions
- Derived
Constructors
RequestOptions() |
Properties
AddRequestHeaders |
Gets or sets a delegate which injects/appends a custom header in the request. |
CosmosThresholdOptions |
Threshold values for Distributed Tracing. These values decides whether to generate operation level EventSource with request diagnostics or not. |
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. |
IfMatchEtag |
Gets or sets the If-Match (ETag) associated with the request in the Azure Cosmos DB service. |
IfNoneMatchEtag |
Gets or sets the If-None-Match (ETag) associated with the request in the Azure Cosmos DB service. |
PriorityLevel |
Gets or sets the priority level for a request. |
Properties |
Application opted Cosmos request context that flow through with the RequestMessage. Context will be available through handlers. |
Methods
ShallowCopy() |
Clone RequestOptions. |