Mono Class Library: System.Array Overview | MembersSystem.Array.GetValue Method |
Gets the value at the specified position in the current multidimensional instance. [Edit]
|
A object that contains the value at the specified position in the current instance. [Edit]
Type Reason ArgumentNullException indices is null. [Edit] ArgumentException The number of dimensions in the current instance is not equal to the number of elements in indices. [Edit] IndexOutOfRangeException At least one element in indices is outside the range of valid indices for the corresponding dimension of the current instance. [Edit]
The number of elements in indices is required to be equal to the number of dimensions in the current instance. All elements in indices collectively specify the position of the desired element in the current instance.
Note: Use the Array.GetLowerBound(int) and Array.GetUpperBound(int) methods to determine whether any of the values in indices are out of bounds.[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0