ResourceBundle.GetString(String) Method
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.
Gets a string for the given key from this resource bundle or one of its parents.
[Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public string? GetString (string? key);
[<Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
member this.GetString : string -> string
- key
- String
the key for the desired string
the string for the given key
- Attributes
if the resource is not found.
if the resource found is not a string.
Gets a string for the given key from this resource bundle or one of its parents. Calling this method is equivalent to calling <blockquote> (String) {@link #getObject(java.lang.String) getObject}(key)
. </blockquote>
Java documentation for java.util.ResourceBundle.getString(java.lang.String)
.
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.