ArrayGetValue Method (Int32) |
Gets the value at the specified position in the one-dimensional
Array. The index is specified as a 32-bit integer.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public Object GetValue(
int index
)
Parameters
- index
- Type: SystemInt32
A 32-bit integer that represents the position of the Array element to get.
Return Value
Type:
ObjectThe value at the specified position in the one-dimensional
Array.
Exceptions Exception | Condition |
---|
ArgumentException | The current Array does not have exactly one dimension. |
IndexOutOfRangeException | index is outside the range of valid indexes for the current Array. |
See Also