Array.GetValue Method (Int64, Int64, Int64)
.NET Framework (current version)
Gets the value at the specified position in the three-dimensional Array. The indexes are specified as 64-bit integers.
Assembly: mscorlib (in mscorlib.dll)
[<ComVisibleAttribute(false)>] member GetValue : index1:int64 * index2:int64 * index3:int64 -> Object
Parameters
- index1
-
Type:
System.Int64
A 64-bit integer that represents the first-dimension index of the Array element to get.
- index2
-
Type:
System.Int64
A 64-bit integer that represents the second-dimension index of the Array element to get.
- index3
-
Type:
System.Int64
A 64-bit integer that represents the third-dimension index of the Array element to get.
| Exception | Condition |
|---|---|
| ArgumentException | The current Array does not have exactly three dimensions. |
| ArgumentOutOfRangeException | index1 or index2 or index3 is outside the range of valid indexes for the corresponding dimension of the current Array. |
The GetLowerBound and GetUpperBound methods can determine whether any of the indexes is out of bounds.
This method is an O(1) operation.
.NET Framework
Available since 1.1
Available since 1.1
Show: