Preferences.Set 方法

定義

多載

名稱 Description
Set(String, Int64, String)

設定指定索引鍵的值。

Set(String, Int32, String)

設定指定索引鍵的值。

Set(String, Double, String)

設定指定索引鍵的值。

Set(String, DateTime, String)

設定指定索引鍵的值。

Set(String, Boolean, String)

設定指定索引鍵的值。

Set(String, String)

設定指定索引鍵的值。

Set(String, Double)

設定指定索引鍵的值。

Set(String, Int64)

設定指定索引鍵的值。

Set(String, Int32)

設定指定索引鍵的值。

Set(String, DateTime)

設定指定索引鍵的值。

Set(String, Boolean)

設定指定索引鍵的值。

Set(String, Single, String)

設定指定索引鍵的值。

Set(String, Single)

設定指定索引鍵的值。

Set(String, String, String)

設定指定索引鍵的值。

Set(String, Int64, String)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Int64

偏好值。

sharedName
System.String

共用容器名稱。

適用於

Set(String, Int32, String)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Int32

偏好值。

sharedName
System.String

共用容器名稱。

適用於

Set(String, Double, String)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Double

偏好值。

sharedName
System.String

共用容器名稱。

適用於

Set(String, DateTime, String)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.DateTime

偏好值。

sharedName
System.String

共用容器名稱。

適用於

Set(String, Boolean, String)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Boolean

偏好值。

sharedName
System.String

共用容器名稱。

適用於

Set(String, String)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.String

偏好值。

適用於

Set(String, Double)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Double

偏好值。

適用於

Set(String, Int64)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Int64

偏好值。

適用於

Set(String, Int32)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Int32

偏好值。

適用於

Set(String, DateTime)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.DateTime

偏好值。

適用於

Set(String, Boolean)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Boolean

偏好值。

適用於

Set(String, Single, String)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Single

偏好值。

sharedName
System.String

共用容器名稱。

適用於

Set(String, Single)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.Single

偏好值。

適用於

Set(String, String, String)

設定指定索引鍵的值。

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

參數

key
System.String

偏好鍵。

value
System.String

偏好值。

sharedName
System.String

共用容器名稱。

適用於