Android Guides | Samples

Android.OS.BaseBundle.GetString Method

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key or if a null value is explicitly associated with the given key.

Syntax

[Android.Runtime.Register("getString", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "GetGetString_Ljava_lang_String_Ljava_lang_String_Handler")]
public virtual String GetString (String key, String defaultValue)

Parameters

key
a String, or null
defaultValue
Value to return if key does not exist or if a null value is associated with the given key.

Remarks

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key or if a null value is explicitly associated with the given key.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0