Share via


IPreferences.Set<T>(String, T, String) Method

Definition

Sets a value for a given key.

public void Set<T> (string key, T value, string? sharedName = default);
abstract member Set : string * 'T * string -> unit
Public Sub Set(Of T) (key As String, value As T, Optional sharedName As String = Nothing)

Type Parameters

T

Type of the object that is stored in this preference.

Parameters

key
String

The key to set the value for.

value
T

Value to set.

sharedName
String

Shared container name.

Applies to