ConnectionPolicy 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.
Represents the connection policy associated with a DocumentClient to connect to the Azure Cosmos DB service.
public sealed class ConnectionPolicy
type ConnectionPolicy = class
Public NotInheritable Class ConnectionPolicy
- Inheritance
-
System.ObjectConnectionPolicy
Constructors
ConnectionPolicy() |
Initializes a new instance of the ConnectionPolicy class to connect to the Azure Cosmos DB service. |
Properties
ConnectionMode |
Gets or sets the connection mode used by the client when connecting to the Azure Cosmos DB service. |
ConnectionProtocol |
Gets or sets the connection protocol when connecting to the Azure Cosmos DB service. |
Default |
Gets the default connection policy used to connect to the Azure Cosmos DB service. |
EnableEndpointDiscovery |
Gets or sets the flag to enable endpoint discovery for geo-replicated database accounts in the Azure Cosmos DB service. |
MaxConnectionLimit |
Gets or sets the maximum number of concurrent connections allowed for the target service endpoint in the Azure Cosmos DB service. |
MediaReadMode |
Gets or sets the attachment content (a.k.a. media) download mode when connecting to the Azure Cosmos DB service. |
MediaRequestTimeout |
Gets or sets the media request timeout in seconds when connecting to the Azure Cosmos DB service. |
PreferredLocations |
Gets and sets the preferred locations (regions) for geo-replicated database accounts in the Azure Cosmos DB service. For example, "East US" as the preferred location. |
RequestTimeout |
Gets or sets the request timeout in seconds when connecting to the Azure Cosmos DB service. The number specifies the time to wait for response to come back from network peer. |
RetryOptions |
Gets or sets the RetryOptions associated with the DocumentClient in the Azure Cosmos DB service. |
UserAgentSuffix |
A suffix to be added to the default user-agent for the Azure Cosmos DB service. |