Mono Class Library: System.Array Overview | Members

System.Array.GetValue Method

Gets the value at the specified position in the current three-dimensional instance.

public object GetValue (int index1, int index2, int index3)

Parameters

index1
A int that contains the first-dimension index of the element in the current instance to get.
index2
A int that contains the second-dimension index of the element in the current instance to get.
index3
A int that contains the third-dimension index of the element in the current instance to get.

Returns

A object that contains the value at the specified position in the current instance.

Exceptions

TypeReason
ArgumentExceptionThe current instance does not have exactly three dimensions.
IndexOutOfRangeExceptionAt least one ofindex1 or index2 or index3 is outside the range of valid indexes for the corresponding dimension of the current instance.

Remarks

Note: Use the Array.GetLowerBound(int) and Array.GetUpperBound(int) methods to determine whether any of the indices are out of bounds.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0