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


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


String String

the preference key to be added or updated.

Int64 Int64

the preference value for the given key.


if the given key is null.

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

if this node has been removed.


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