Udostępnij przez


MemoryStorage Konstruktory

Definicja

Przeciążenia

MemoryStorage(Dictionary<String,JObject>)

Inicjuje nowe wystąpienie klasy MemoryStorage.

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

Inicjuje nowe wystąpienie klasy MemoryStorage.

MemoryStorage(Dictionary<String,JObject>)

Inicjuje nowe wystąpienie klasy 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)

Parametry

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

Istniejący słownik do użycia; lub ma wartość null, aby użyć nowej.

Dotyczy

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

Inicjuje nowe wystąpienie klasy 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)

Parametry

jsonSerializer
Newtonsoft.Json.JsonSerializer

W przypadku przekazywania niestandardowego elementu JsonSerializer zalecamy następujące ustawienia:

jsonSerializer.TypeNameHandling = TypeNameHandling.All.

jsonSerializer.NullValueHandling = NullValueHandling.Include.

jsonSerializer.ContractResolver = new DefaultContractResolver().

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

Istniejący słownik do użycia; lub ma wartość null, aby użyć nowej.

Dotyczy