Array.GetValue Method (Int32, Int32)
.NET Framework (current version)
Gets the value at the specified position in the two-dimensional Array. The indexes are specified as 32-bit integers.
mscorlib (in mscorlib.dll)
member GetValue :
index2:int -> Object
A 32-bit integer that represents the first-dimension index of the Array element to get.
A 32-bit integer that represents the second-dimension index of the Array element to get.
The value at the specified position in the two-dimensional Array.
The GetLowerBound and GetUpperBound methods can determine whether any of the indexes is out of bounds.
This method is an O(1) operation.
The following code example demonstrates how to set and get a specific value in a one-dimensional or multidimensional array.
No code example is currently available or this language may not be supported.
Return to top
Available since 1.1