Java.Util.Prefs.Preferences.PutDouble Method
Adds a new preference to this node using the given key and double value or updates the value if a preference with the given key already exists.

Syntax

[Android.Runtime.Register("putDouble", "(Ljava/lang/String;D)V", "GetPutDouble_Ljava_lang_String_DHandler")]
public abstract void PutDouble (string key, double value)

Parameters

key
the preference key to be added or updated.
value
the preference value for the given key.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif the given key is null.
Java.Lang.IllegalArgumentExceptionif the given key's length is bigger than MAX_KEY_LENGTH.
Java.Lang.IllegalStateExceptionif this node has been removed.

Remarks

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

The value is stored in its string form, which is the result of invoking Java.Lang.Double.ToString(double).

[Android Documentation]

Requirements

Namespace: Java.Util.Prefs
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1