次の方法で共有


ResourceBundle.GetString(String) Method

Definition

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

Parameters

key
String

the key for the desired string

Returns

the string for the given key

Attributes

Exceptions

if the resource is not found.

if the resource found is not a string.

Remarks

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.

Applies to

See also