NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Array.GetValue (Int32[])

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

[Visual Basic]
Overloads Public Function GetValue( _
   ByVal indices() As Integer _
) As Object
[C#]
public object GetValue(
   int[] indices
);
[C++]
public: Object* GetValue(
   int* indices[]
);
[JScript]
public function GetValue(
   indices : int[]
) : Object;

Parameters

indices
A one-dimensional array of indices specifying the position of the element to retrieve.

Return Value

The value at the specified position in the Array.

Exceptions

Exception Type Condition
ArgumentNullException indices is a null reference (in Visual Basic Nothing).
ArgumentException The number of dimensions in the Array is not equal to the number of elements in indices.
IndexOutOfRangeException Any element in indices is outside the range of valid indices for the corresponding dimension of the 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 denote the position of the desired element in the multidimensional Array.

The GetLowerBound and GetUpperBound methods can be used to determine whether any of the indices is out of bounds.

See Also

Array Class | Array Members | System Namespace | Array.GetValue Overload List | GetLowerBound | GetUpperBound | SetValue