Freigeben über


ResourceBundle.GetStringArray(String) Method

Definition

Gets a string array for the given key from this resource bundle or one of its parents.

[Android.Runtime.Register("getStringArray", "(Ljava/lang/String;)[Ljava/lang/String;", "")]
public string[]? GetStringArray (string? key);
[<Android.Runtime.Register("getStringArray", "(Ljava/lang/String;)[Ljava/lang/String;", "")>]
member this.GetStringArray : string -> string[]

Parameters

key
String

the key for the desired string array

Returns

String[]

the string array for the given key

Attributes

Exceptions

if the resource is not found.

if the resource found is not an array of strings.

Remarks

Gets a string array 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.getStringArray(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