다음을 통해 공유


AbstractPreferences.PutLong(String, Int64) Method

Definition

Implements the putLong method as per the specification in Preferences#putLong(String,long).

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

Parameters

key
String

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

value
Int64

value whose string form is to be associated with key.

Attributes

Remarks

Implements the putLong method as per the specification in Preferences#putLong(String,long).

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

Java documentation for java.util.prefs.AbstractPreferences.putLong(java.lang.String, long).

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