MemoryStorage Konstruktorok

Definíció

Túlterhelések

MemoryStorage(Dictionary<String,JObject>)

Inicializálja a osztály új példányát MemoryStorage .

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

Inicializálja a osztály új példányát MemoryStorage .

MemoryStorage(Dictionary<String,JObject>)

Inicializálja a osztály új példányát 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)

Paraméterek

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

Egy már meglévő szótár, amelyet használni kell; vagy null értékre, ha újat szeretne használni.

A következőre érvényes:

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

Inicializálja a osztály új példányát 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)

Paraméterek

jsonSerializer
Newtonsoft.Json.JsonSerializer

Ha egyéni JsonSerializert ad meg, a következő beállításokat javasoljuk:

jsonSerializer.TypeNameHandling = TypeNameHandling.All.

jsonSerializer.NullValueHandling = NullValueHandling.Include.

jsonSerializer.ContractResolver = new DefaultContractResolver().

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

Egy már meglévő szótár, amelyet használni kell; vagy null értékre, ha újat szeretne használni.

A következőre érvényes: