MemoryStorage 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用記憶體內部字典的儲存層。
public class MemoryStorage : Microsoft.Bot.Builder.IStorage
type MemoryStorage = class
interface IStorage
Public Class MemoryStorage
Implements IStorage
- 繼承
-
MemoryStorage
- 實作
建構函式
MemoryStorage(Dictionary<String,JObject>) |
初始化 MemoryStorage 類別的新執行個體。 |
MemoryStorage(JsonSerializer, Dictionary<String,JObject>) |
初始化 MemoryStorage 類別的新執行個體。 |
方法
DeleteAsync(String[], CancellationToken) |
從儲存體中刪除儲存體專案。 |
ReadAsync(String[], CancellationToken) |
從儲存體讀取儲存體專案。 |
WriteAsync(IDictionary<String,Object>, CancellationToken) |
將儲存體專案寫入儲存體。 |
擴充方法
ReadAsync<TStoreItem>(IStorage, String[], CancellationToken) |
從狀態儲存體取得和強型別 物件的集合 IStoreItem 。 |