asp.net.ph

Array.GetValue Method ( Int32 [ ] )

System Namespace   Array Class


Returns the value at the specified position in the multidimensional Array.

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

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

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

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

Parameters

indices
A one-dimensional array of indexes that specifies the position of the Array element to get.

Return Value

The value at the specified position in the multidimensional Array.

Exceptions


Exception Type Condition
ArgumentNullException indices is a null reference ( Nothing in Visual Basic ).
ArgumentException The number of dimensions in the current Array is not equal to the number of elements in indices.
IndexOutOfRangeException Any element in indices is outside the range of valid indexes for the corresponding dimension of the current Array.

Remarks

The number of elements in indices must equal the number of dimensions in the Array. All elements in the indices array must collectively specify the position of the desired element in the multidimensional Array.

The GetLowerBound and GetUpperBound methods can determine whether any of the indexes 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