Preferences.PutLong(String, Int64) Preferences.PutLong(String, Int64) Method

Definition

Adds a new preference to this node using the given key and long value or updates the value if a preference with the given key already exists.

[Android.Runtime.Register("putLong", "(Ljava/lang/String;J)V", "GetPutLong_Ljava_lang_String_JHandler")]
public abstract void PutLong (string key, long value);
abstract member PutLong : string * int64 -> unit

Parameters

key
String String

the preference key to be added or updated.

value
Int64 Int64

the preference value for the given key.

Exceptions

if the given key is null.

if the given key's length is bigger than MAX_KEY_LENGTH.

if this node has been removed.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to