語言

CosmosDbPartitionedStorage 類別

定義

使用 Bot 的數據分割,實作以 CosmosDB 為基礎的記憶體提供者。

public class CosmosDbPartitionedStorage : IDisposable, Microsoft.Bot.Builder.IStorage
type CosmosDbPartitionedStorage = class
    interface IStorage
    interface IDisposable
Public Class CosmosDbPartitionedStorage
Implements IDisposable, IStorage
繼承
CosmosDbPartitionedStorage
實作

建構函式

名稱 Description
CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions, JsonSerializer)

初始化 CosmosDbPartitionedStorage 類別的新執行個體。 使用提供的 CosmosDB 憑證、資料庫 ID 及集合 ID。

CosmosDbPartitionedStorage(CosmosDbPartitionedStorageOptions)

初始化 CosmosDbPartitionedStorage 類別的新執行個體。 使用提供的 CosmosDB 認證、資料庫識別碼和容器標識碼。

方法

名稱 Description
DeleteAsync(String[], CancellationToken)

從 Cosmos DB 容器中刪除一或多個專案。

Dispose()

處置物件實例並釋放類別擁有的所有相關物件。

Dispose(Boolean)

處理類別使用的物件。

ReadAsync(String[], CancellationToken)

從 Cosmos DB 容器讀取一個或多個具有相同鍵鑰的項目。

WriteAsync(IDictionary<String,Object>, CancellationToken)

將一或多個專案插入或更新至 Cosmos DB 容器。

擴充方法

名稱 Description
ReadAsync<TStoreItem>(IStorage, String[], CancellationToken)

從狀態儲存中取得並強型輸入一組 IStoreItem 物件。

適用於