Click or drag to resize
ArrayGetValue Method (Int64)
Gets the value at the specified position in the one-dimensional Array. The index is specified as a 64-bit integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public Object GetValue(
	long index
)

Parameters

index
Type: SystemInt64
A 64-bit integer that represents the position of the Array element to get.

Return Value

Type: Object
The value at the specified position in the one-dimensional Array.
Exceptions
ExceptionCondition
ArgumentExceptionThe current Array does not have exactly one dimension.
ArgumentOutOfRangeExceptionindex is outside the range of valid indexes for the current Array.
See Also