Array.GetValue Method (Int64)
.NET Framework (current version)
Gets the value at the specified position in the one-dimensional Array. The index is specified as a 64-bit integer.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- index
-
Type:
System.Int64
A 64-bit integer that represents the position of the Array element to get.
| Exception | Condition |
|---|---|
| ArgumentException | The current Array does not have exactly one dimension. |
| ArgumentOutOfRangeException | index is outside the range of valid indexes for the current Array. |
The GetLowerBound and GetUpperBound methods can determine whether the value of index is out of bounds.
This method is an O(1) operation.
.NET Framework
Available since 1.1
Available since 1.1
Show: