Edit

Share via


IObjectStorageHelper.Save Method

Definition

Overloads

Save<T>(String, IDictionary<String,T>)

Saves a group of items by its key in a composite. This method should be considered for objects that do not exceed 8k bytes during the lifetime of the application (refers to SaveFileAsync<T>(String, T) for complex/large objects) and for groups of settings which need to be treated in an atomic way.

Save<T>(String, T)

Saves a single item by its key.

Save<T>(String, IDictionary<String,T>)

Saves a group of items by its key in a composite. This method should be considered for objects that do not exceed 8k bytes during the lifetime of the application (refers to SaveFileAsync<T>(String, T) for complex/large objects) and for groups of settings which need to be treated in an atomic way.

public void Save<T> (string compositeKey, System.Collections.Generic.IDictionary<string,T> values);
abstract member Save : string * System.Collections.Generic.IDictionary<string, 'T> -> unit
Public Sub Save(Of T) (compositeKey As String, values As IDictionary(Of String, T))

Type Parameters

T

Type of object saved.

Parameters

compositeKey
String

Key of the composite (that contains settings).

values
IDictionary<String,T>

Objects to save.

Applies to

Save<T>(String, T)

Saves a single item by its key.

public void Save<T> (string key, T value);
abstract member Save : string * 'T -> unit
Public Sub Save(Of T) (key As String, value As T)

Type Parameters

T

Type of object saved.

Parameters

key
String

Key of the value saved.

value
T

Object to save.

Applies to