Jaa


MemoryStorage Constructors

Definition

Overloads

MemoryStorage(Dictionary<String,JObject>)

Initializes a new instance of the MemoryStorage class.

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

Initializes a new instance of the MemoryStorage class.

MemoryStorage(Dictionary<String,JObject>)

Initializes a new instance of the MemoryStorage class.

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)

Parameters

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

A pre-existing dictionary to use; or null to use a new one.

Applies to

MemoryStorage(JsonSerializer, Dictionary<String,JObject>)

Initializes a new instance of the MemoryStorage class.

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)

Parameters

jsonSerializer
Newtonsoft.Json.JsonSerializer

If passing in a custom JsonSerializer, we recommend the following settings:

jsonSerializer.TypeNameHandling = TypeNameHandling.All.

jsonSerializer.NullValueHandling = NullValueHandling.Include.

jsonSerializer.ContractResolver = new DefaultContractResolver().

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

A pre-existing dictionary to use; or null to use a new one.

Applies to