次の方法で共有


MemoryStorage コンストラクター

定義

オーバーロード

MemoryStorage(Dictionary<String,JObject>)

MemoryStorage クラスの新しいインスタンスを初期化します。

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

MemoryStorage クラスの新しいインスタンスを初期化します。

MemoryStorage(Dictionary<String,JObject>)

MemoryStorage クラスの新しいインスタンスを初期化します。

public MemoryStorage(System.Collections.Generic.Dictionary<string,Newtonsoft.Json.Linq.JObject> dictionary = default);
new Microsoft.Bot.Builder.MemoryStorage : System.Collections.Generic.Dictionary<string, Newtonsoft.Json.Linq.JObject> -> Microsoft.Bot.Builder.MemoryStorage
Public Sub New (Optional dictionary As Dictionary(Of String, JObject) = Nothing)

パラメーター

dictionary
Dictionary<String,Newtonsoft.Json.Linq.JObject>

使用する既存のディクショナリ。新しいものを使用する場合は null。

適用対象

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

MemoryStorage クラスの新しいインスタンスを初期化します。

public MemoryStorage(Newtonsoft.Json.JsonSerializer jsonSerializer, System.Collections.Generic.Dictionary<string,Newtonsoft.Json.Linq.JObject> dictionary = default);
new Microsoft.Bot.Builder.MemoryStorage : Newtonsoft.Json.JsonSerializer * System.Collections.Generic.Dictionary<string, Newtonsoft.Json.Linq.JObject> -> Microsoft.Bot.Builder.MemoryStorage
Public Sub New (jsonSerializer As JsonSerializer, Optional dictionary As Dictionary(Of String, JObject) = Nothing)

パラメーター

jsonSerializer
Newtonsoft.Json.JsonSerializer

カスタム JsonSerializer を渡す場合は、次の設定をお勧めします。

jsonSerializer.TypeNameHandling = TypeNameHandling.All。

jsonSerializer.NullValueHandling = NullValueHandling.Include。

jsonSerializer.ContractResolver = 新しい DefaultContractResolver()。

dictionary
Dictionary<String,Newtonsoft.Json.Linq.JObject>

使用する既存のディクショナリ。新しいものを使用する場合は null。

適用対象