Android.Content.ISharedPreferencesEditor.PutString Method
Set a String value in the preferences editor, to be written back once ISharedPreferencesEditor.Commit or ISharedPreferencesEditor.Apply are called.

Syntax

[Android.Runtime.Register("putString", "(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;", "GetPutString_Ljava_lang_String_Ljava_lang_String_Handler:Android.Content.ISharedPreferencesEditorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public ISharedPreferencesEditor PutString (string key, string value)

Parameters

key
The name of the preference to modify.
value
The new value for the preference. Supplying null as the value is equivalent to calling ISharedPreferencesEditor.Remove(string) with this key.

Returns

Documentation for this section has not yet been entered.

Remarks

Set a String value in the preferences editor, to be written back once ISharedPreferencesEditor.Commit or ISharedPreferencesEditor.Apply are called.

[Android Documentation]

Requirements

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