Sdílet prostřednictvím


MemoryStorage Konstruktory

Definice

Přetížení

MemoryStorage(Dictionary<String,JObject>)

Inicializuje novou instanci MemoryStorage třídy .

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

Inicializuje novou instanci MemoryStorage třídy .

MemoryStorage(Dictionary<String,JObject>)

Inicializuje novou instanci MemoryStorage třídy .

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)

Parametry

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

Existující slovník, který se má použít; nebo null, pokud chcete použít nový.

Platí pro

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

Inicializuje novou instanci MemoryStorage třídy .

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)

Parametry

jsonSerializer
Newtonsoft.Json.JsonSerializer

Pokud předáváte vlastní JsonSerializer, doporučujeme následující nastavení:

jsonSerializer.TypeNameHandling = TypeNameHandling.All.

jsonSerializer.NullValueHandling = NullValueHandling.Include.

jsonSerializer.ContractResolver = new DefaultContractResolver().

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

Existující slovník, který se má použít; nebo null, pokud chcete použít nový.

Platí pro