Gets the value at the specified position in the one-dimensional Array.
[Visual Basic] Overloads Public Function GetValue( _ ByVal index As Integer _ ) As Object [C#] public object GetValue( int index ); [C++] public: Object* GetValue( int index ); [JScript] public function GetValue( index : int ) : Object;
The value at the specified position in the one-dimensional Array.
Exception Type | Condition |
---|---|
ArgumentException | The Array does not have exactly one dimension. |
IndexOutOfRangeException | index is outside the range of valid indices for the Array. |
The GetLowerBound and GetUpperBound methods can be used to determine whether the value of index is out of bounds.
Array Class | Array Members | System Namespace | Array.GetValue Overload List | GetLowerBound | GetUpperBound | SetValue