CosmosDbPartitionedStorage Constructors
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.
Overloads
CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions) |
Initializes a new instance of the CosmosDbPartitionedStorage class. using the provided CosmosDB credentials, database ID, and container ID. |
CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions, JsonSerializer) |
Initializes a new instance of the CosmosDbPartitionedStorage class. using the provided CosmosDB credentials, database ID, and collection ID. |
CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions)
Initializes a new instance of the CosmosDbPartitionedStorage class. using the provided CosmosDB credentials, database ID, and container ID.
public CosmosDbPartitionedStorage (Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorageOptions cosmosDbStorageOptions);
new Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorage : Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorageOptions -> Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorage
Public Sub New (cosmosDbStorageOptions As CosmosDbPartitionedStorageOptions)
Parameters
- cosmosDbStorageOptions
- CosmosDbPartitionedStorageOptions
Cosmos DB partitioned storage configuration options.
Applies to
CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions, JsonSerializer)
Initializes a new instance of the CosmosDbPartitionedStorage class. using the provided CosmosDB credentials, database ID, and collection ID.
public CosmosDbPartitionedStorage (Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorageOptions cosmosDbStorageOptions, Newtonsoft.Json.JsonSerializer jsonSerializer);
new Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorage : Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorageOptions * Newtonsoft.Json.JsonSerializer -> Microsoft.Bot.Builder.Azure.CosmosDbPartitionedStorage
Public Sub New (cosmosDbStorageOptions As CosmosDbPartitionedStorageOptions, jsonSerializer As JsonSerializer)
Parameters
- cosmosDbStorageOptions
- CosmosDbPartitionedStorageOptions
Cosmos DB partitioned storage configuration options.
- jsonSerializer
- Newtonsoft.Json.JsonSerializer
If passing in a custom JsonSerializer, we recommend the following settings:
jsonSerializer.TypeNameHandling = TypeNameHandling.All.
jsonSerializer.NullValueHandling = NullValueHandling.Include.
jsonSerializer.ContractResolver = new DefaultContractResolver().
jsonSerializer.SerializationBinder = new AllowedTypesSerializationBinder().