Lingua

ISharedPreferencesEditor.PutInt(String, Int32) Metodo

Definizione

Impostare un valore int nell'editor delle preferenze, per essere riscritto una volta Commit() o Apply() chiamato.

[Android.Runtime.Register("putInt", "(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;", "GetPutInt_Ljava_lang_String_IHandler:Android.Content.ISharedPreferencesEditorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Content.ISharedPreferencesEditor? PutInt(string? key, int value);
[<Android.Runtime.Register("putInt", "(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;", "GetPutInt_Ljava_lang_String_IHandler:Android.Content.ISharedPreferencesEditorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member PutInt : string * int -> Android.Content.ISharedPreferencesEditor

Parametri

key
String

Nome della preferenza da modificare.

value
Int32

Nuovo valore per la preferenza.

Valori restituiti

Restituisce un riferimento allo stesso oggetto Editor, in modo da poter concatenare le chiamate.

Attributi

Commenti

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

per android.content.SharedPreferences.Editor.putInt(java.lang.String, int).

Si applica a