다음을 통해 공유


AbstractPreferences.PutDouble(String, Double) Method

Definition

Implements the putDouble method as per the specification in Preferences#putDouble(String,double).

[Android.Runtime.Register("putDouble", "(Ljava/lang/String;D)V", "GetPutDouble_Ljava_lang_String_DHandler")]
public override void PutDouble (string? key, double value);
[<Android.Runtime.Register("putDouble", "(Ljava/lang/String;D)V", "GetPutDouble_Ljava_lang_String_DHandler")>]
override this.PutDouble : string * double -> unit

Parameters

key
String

key with which the string form of value is to be associated.

value
Double

value whose string form is to be associated with key.

Attributes

Remarks

Implements the putDouble method as per the specification in Preferences#putDouble(String,double).

This implementation translates value to a string with Double#toString(double) and invokes #put(String,String) on the result.

Java documentation for java.util.prefs.AbstractPreferences.putDouble(java.lang.String, double).

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