Udostępnij przez


CosmosDbPartitionedStorage Konstruktory

Definicja

Przeciążenia

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions)

Inicjuje nowe wystąpienie klasy CosmosDbPartitionedStorage. przy użyciu podanych poświadczeń usługi CosmosDB, identyfikatora bazy danych i identyfikatora kontenera.

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions, JsonSerializer)

Inicjuje nowe wystąpienie klasy CosmosDbPartitionedStorage. przy użyciu podanych poświadczeń usługi CosmosDB, identyfikatora bazy danych i identyfikatora kolekcji.

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions)

Inicjuje nowe wystąpienie klasy CosmosDbPartitionedStorage. przy użyciu podanych poświadczeń usługi CosmosDB, identyfikatora bazy danych i identyfikatora kontenera.

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)

Parametry

cosmosDbStorageOptions
CosmosDbPartitionedStorageOptions

Opcje konfiguracji magazynu partycjonowanego w usłudze Cosmos DB.

Dotyczy

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions, JsonSerializer)

Inicjuje nowe wystąpienie klasy CosmosDbPartitionedStorage. przy użyciu podanych poświadczeń usługi CosmosDB, identyfikatora bazy danych i identyfikatora kolekcji.

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)

Parametry

cosmosDbStorageOptions
CosmosDbPartitionedStorageOptions

Opcje konfiguracji magazynu partycjonowanego w usłudze Cosmos DB.

jsonSerializer
Newtonsoft.Json.JsonSerializer

W przypadku przekazywania niestandardowego elementu JsonSerializer zalecamy następujące ustawienia:

jsonSerializer.TypeNameHandling = TypeNameHandling.All.

jsonSerializer.NullValueHandling = NullValueHandling.Include.

jsonSerializer.ContractResolver = new DefaultContractResolver().

jsonSerializer.SerializationBinder = new AllowedTypesSerializationBinder().

Dotyczy