Retrieve a String value from the preferences.
Syntax
[Android.Runtime.Register("getString", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetString_Ljava_lang_String_Ljava_lang_String_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public
string GetString (
string key,
string defValue)
Parameters
- key
- The name of the preference to retrieve.
- defValue
- Value to return if this preference does not exist.
Returns
Documentation for this section has not yet been entered.
Exceptions
Remarks
Requirements
Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1