Bundle.GetString 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.
Overloads
GetString(String) |
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key. |
GetString(String, String) |
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key. |
GetString(String)
Returns the value associated with the given key, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
[Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public override string? GetString (string? key);
[<Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
override this.GetString : string -> string
Parameters
- key
- String
Returns
- Attributes
Remarks
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.
Applies to
GetString(String, String)
Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.
[Android.Runtime.Register("getString", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public override string? GetString (string? key, string? defaultValue);
[<Android.Runtime.Register("getString", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
override this.GetString : string * string -> string
Parameters
- key
- String
a String, or null
- defaultValue
- String
Value to return if key does not exist
Returns
- Attributes
Remarks
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.