AbstractPreferences.PutInt(String, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements the putInt
method as per the specification in
Preferences#putInt(String,int)
.
[Android.Runtime.Register("putInt", "(Ljava/lang/String;I)V", "GetPutInt_Ljava_lang_String_IHandler")]
public override void PutInt (string? key, int value);
[<Android.Runtime.Register("putInt", "(Ljava/lang/String;I)V", "GetPutInt_Ljava_lang_String_IHandler")>]
override this.PutInt : string * int -> unit
Parameters
- key
- String
key with which the string form of value is to be associated.
- value
- Int32
value whose string form is to be associated with key.
- Attributes
Remarks
Implements the putInt
method as per the specification in Preferences#putInt(String,int)
.
This implementation translates value
to a string with Integer#toString(int)
and invokes #put(String,String)
on the result.
Java documentation for java.util.prefs.AbstractPreferences.putInt(java.lang.String, int)
.
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.