Array.Get(Object, Int32) 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.
Returns the value of the indexed component in the specified array object.
[Android.Runtime.Register("get", "(Ljava/lang/Object;I)Ljava/lang/Object;", "")]
public static Java.Lang.Object? Get (Java.Lang.Object array, int index);
[<Android.Runtime.Register("get", "(Ljava/lang/Object;I)Ljava/lang/Object;", "")>]
static member Get : Java.Lang.Object * int -> Java.Lang.Object
Parameters
- array
- Object
the array
- index
- Int32
the index
Returns
the (possibly wrapped) value of the indexed component in the specified array
- Attributes
Exceptions
if array == null
if array
is not an array
if index = array.length
Remarks
Returns the value of the indexed component in the specified array object. The value is automatically wrapped in an object if it has a primitive type.
Java documentation for java.lang.reflect.Array.get(java.lang.Object, int)
.
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.