Sdílet prostřednictvím


Array.SetInt(Object, Int32, Int32) Method

Definition

Sets the value of the indexed component of the specified array object to the specified int value.

[Android.Runtime.Register("setInt", "(Ljava/lang/Object;II)V", "")]
public static void SetInt (Java.Lang.Object array, int index, int i);
[<Android.Runtime.Register("setInt", "(Ljava/lang/Object;II)V", "")>]
static member SetInt : Java.Lang.Object * int * int -> unit

Parameters

array
Object

the array

index
Int32

the index into the array

i
Int32

the new value of the indexed component

Attributes

Exceptions

if array == null

if the array is not an array or the value cannot be converted to the array type by a widening conversion

if index = array.length

Remarks

Sets the value of the indexed component of the specified array object to the specified int value.

Java documentation for java.lang.reflect.Array.setInt(java.lang.Object, int, 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.

Applies to