asp.net.ph

Array.GetValue Method ( Int32 )

System Namespace   Array Class


Returns the value at the specified position in the one-dimensional Array.

[ VB ]
<Serializable>
Overloads Public Function GetValue ( _
   ByVal index As Integer _
) As Object

[ C# ]
[Serializable]
public object GetValue (
   int index
);

[ C++ ]
[Serializable]
public: Object* GetValue (
   int index
);

[JScript ]
public Serializable
function GetValue (
   index : int
) : Object;

Parameters

index
The position of the Array element to get.

Return Value

The value at the specified position in the one-dimensional Array.

Exceptions


Exception Type Condition
ArgumentException The current Array does not have exactly one dimension.
IndexOutOfRangeException index is outside the range of valid indexes for the current Array.

Remarks

The GetLowerBound and GetUpperBound methods can determine whether the value of index is out of bounds.

See Also

Array Members   Array.GetValue Overload List   GetLowerBound   GetUpperBound   SetValue Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph