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 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;

Parameters

index
The position of the value to retrieve from the Array.

Return Value

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

Exceptions

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

Remarks

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

See Also

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