Microsoft.Azure.Cosmos Namespace

Classes

AccessCondition

Represents a set of access conditions to be used for operations in the Azure Cosmos DB service.

CosmosClient

Provides a client-side logical representation of the Azure Cosmos DB database account. This client can be used to configure and execute requests in the Azure Cosmos DB database service.

CosmosClient is thread-safe. Its recommended to maintain a single instance of CosmosClient per lifetime of the application which enables efficient connection management and performance.

CosmosConfiguration

This is a configuration class that holds all the properties the CosmosClient requires.

CosmosContainer

Operations for reading, replacing, or deleting a specific, existing cosmosContainer by id.

CosmosContainers for creating new containers, and reading/querying all containers;

CosmosContainerRequestOptions

The cosmos container request options

CosmosContainerResponse

The cosmos container response

CosmosContainers

Operations for creating new containers, and reading/querying all containers

CosmosContainer for reading, replacing, or deleting an existing container.

Note: all these operations make calls against a fixed budget. You should design your system such that these calls scale sub-linearly with your application. For instance, do not call containers.GetContainerIterator() before every single item.read() call, to ensure the container exists; do this once on application start up.

CosmosDatabase

Operations for reading or deleting an existing database.

CosmosDatabases for or creating new databases, and reading/querying all databases; use client.Databases.

CosmosDatabaseResponse

The cosmos database response

CosmosDatabases

Operations for creating new databases, and reading/querying all databases

CosmosDatabasefor reading, replacing, or deleting an existing container;

CosmosException

The Cosmos Client exception

CosmosIdentifier

A base class for a the client reference objects like CosmosDatabase. This generates the URI needed for the resource and caches it.

CosmosItemRequestOptions

Cosmos item request options

CosmosItemResponse<T>

The cosmos item response

CosmosItems

Used to perform operations on items. There are two different types of operations.

  1. The object operations where it serializes and deserializes the item on request/response
  2. The stream response which takes a Stream containing a JSON serialized object and returns a response containing a Stream
CosmosJsonSerializer

This is an interface to allow custom serializers to be used by the CosmosClient

CosmosMessageHeadersBase

Base class for Header handling.

CosmosQueryRequestOptions

The Cosmos query request options

CosmosQueryResponse<T>

The cosmos query response

CosmosRegions

The Azure regions that are currently supported by the Azure Cosmos DB service.

CosmosRequestHandler

Abstraction which allows defining of custom message handlers.

CosmosRequestMessage

Represents a request in the processing pipeline of the Azure Cosmos DB SDK.

CosmosRequestMessageHeaders

Http headers in a CosmosRequestMessage.

CosmosRequestOptions

The default cosmos request options

CosmosResponse<T>

The cosmos resource response class

CosmosResponseMessage

Represents a response from the Azure Cosmos DB service.

CosmosResponseMessageHeaders

HTTP headers in a CosmosResponseMessage.

CosmosResultSetIterator

Cosmos Result set iterator that keeps track of the continuation token when retrieving results form a query.

CosmosResultSetIterator<T>

Cosmos Result set iterator that keeps track of the continuation token when retrieving results form a query.

CosmosSqlQueryDefinition

Defines a Cosmos SQL query

CosmosStoredProcedure

Operations for reading, replacing, or deleting a specific, existing stored procedures by id.

CosmosStoredProcedures for creating new stored procedures, and reading/querying all stored procedures;

CosmosStoredProcedureRequestOptions

The cosmos stored procedure request options

CosmosStoredProcedureResponse

The cosmos stored procedure response

CosmosStoredProcedures

Operations for creating new stored procedures, and reading/querying all stored procedures

CosmosStoredProcedure for reading, replacing, or deleting an existing stored procedures.

Enums

AccessConditionType

Specifies the set of AccessCondition types that can be used for operations in the Azure Cosmos DB service.

ConnectionMode

Represents the connection mode to be used by the client when connecting to the Azure Cosmos DB service.

ConsistencyLevel
IndexingMode