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.IndexOf

Returns the index of the first occurrence of a value in a one-dimensional Array, or in a portion of it.

Overload List

Searches the entire one-dimensional Array for a specific value.

[Visual Basic] Overloads Public Shared Function IndexOf(Array, Object) As Integer
[C#] public static int IndexOf(Array, Object);
[C++] public: static int IndexOf(Array*, Object);
[JScript] public static function IndexOf(Array, Object) : int;

Searches the one-dimensional Array for a specific value, starting at the specified index and ending at the last element.

[Visual Basic] Overloads Public Shared Function IndexOf(Array, Object, Integer) As Integer
[C#] public static int IndexOf(Array, Object, int);
[C++] public: static int IndexOf(Array*, Object, int);
[JScript] public static function IndexOf(Array, Object, int) : int;

Searches the one-dimensional Array for a specific value, starting at the specified start index and ending at the element just prior to the specified end index (?).

[Visual Basic] Overloads Public Shared Function IndexOf(Array, Object, Integer, Integer) As Integer
[C#] public static int IndexOf(Array, Object, int, int);
[C++] public: static int IndexOf(Array*, Object, int, int);
[JScript] public static function IndexOf(Array, Object, int, int) : int;

See Also

Array Class | Array Members | System Namespace