Resources.GetStringArray(Int32) Resources.GetStringArray(Int32) Method

Definition

Return the string array associated with a particular resource ID.

[Android.Runtime.Register("getStringArray", "(I)[Ljava/lang/String;", "GetGetStringArray_IHandler")]
public virtual string[] GetStringArray (int id);
abstract member GetStringArray : int -> string[]
override this.GetStringArray : int -> string[]

Parameters

id
Int32 Int32

The desired resource identifier, as generated by the aapt tool. This integer encodes the package, type, and resource entry. The value 0 is an invalid identifier.

Returns

String[]

Exceptions

Throws NotFoundException if the given ID does not exist.

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