Share via


Preferences.Set Method

Definition

Overloads

Set(String, Int64, String)

Sets a value for a given key.

Set(String, Int32, String)

Sets a value for a given key.

Set(String, Double, String)

Sets a value for a given key.

Set(String, DateTime, String)

Sets a value for a given key.

Set(String, Boolean, String)

Sets a value for a given key.

Set(String, String)

Sets a value for a given key.

Set(String, Double)

Sets a value for a given key.

Set(String, Int64)

Sets a value for a given key.

Set(String, Int32)

Sets a value for a given key.

Set(String, DateTime)

Sets a value for a given key.

Set(String, Boolean)

Sets a value for a given key.

Set(String, Single, String)

Sets a value for a given key.

Set(String, Single)

Sets a value for a given key.

Set(String, String, String)

Sets a value for a given key.

Set(String, Int64, String)

Sets a value for a given key.

public static void Set (string key, long value, string sharedName);

Parameters

key
System.String

Preference key.

value
System.Int64

Preference value.

sharedName
System.String

Shared container name.

Applies to

Set(String, Int32, String)

Sets a value for a given key.

public static void Set (string key, int value, string sharedName);

Parameters

key
System.String

Preference key.

value
System.Int32

Preference value.

sharedName
System.String

Shared container name.

Applies to

Set(String, Double, String)

Sets a value for a given key.

public static void Set (string key, double value, string sharedName);

Parameters

key
System.String

Preference key.

value
System.Double

Preference value.

sharedName
System.String

Shared container name.

Applies to

Set(String, DateTime, String)

Sets a value for a given key.

public static void Set (string key, DateTime value, string sharedName);

Parameters

key
System.String

Preference key.

value
System.DateTime

Preference value.

sharedName
System.String

Shared container name.

Applies to

Set(String, Boolean, String)

Sets a value for a given key.

public static void Set (string key, bool value, string sharedName);

Parameters

key
System.String

Preference key.

value
System.Boolean

Preference value.

sharedName
System.String

Shared container name.

Applies to

Set(String, String)

Sets a value for a given key.

public static void Set (string key, string value);

Parameters

key
System.String

Preference key.

value
System.String

Preference value.

Applies to

Set(String, Double)

Sets a value for a given key.

public static void Set (string key, double value);

Parameters

key
System.String

Preference key.

value
System.Double

Preference value.

Applies to

Set(String, Int64)

Sets a value for a given key.

public static void Set (string key, long value);

Parameters

key
System.String

Preference key.

value
System.Int64

Preference value.

Applies to

Set(String, Int32)

Sets a value for a given key.

public static void Set (string key, int value);

Parameters

key
System.String

Preference key.

value
System.Int32

Preference value.

Applies to

Set(String, DateTime)

Sets a value for a given key.

public static void Set (string key, DateTime value);

Parameters

key
System.String

Preference key.

value
System.DateTime

Preference value.

Applies to

Set(String, Boolean)

Sets a value for a given key.

public static void Set (string key, bool value);

Parameters

key
System.String

Preference key.

value
System.Boolean

Preference value.

Applies to

Set(String, Single, String)

Sets a value for a given key.

public static void Set (string key, float value, string sharedName);

Parameters

key
System.String

Preference key.

value
System.Single

Preference value.

sharedName
System.String

Shared container name.

Applies to

Set(String, Single)

Sets a value for a given key.

public static void Set (string key, float value);

Parameters

key
System.String

Preference key.

value
System.Single

Preference value.

Applies to

Set(String, String, String)

Sets a value for a given key.

public static void Set (string key, string value, string sharedName);

Parameters

key
System.String

Preference key.

value
System.String

Preference value.

sharedName
System.String

Shared container name.

Applies to