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!

ArrayList.IndexOf (Object)

Searches the entire ArrayList for the specified Object and returns the index of the first occurrence.

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

Parameters

value
The Object to search for.

Return Value

The index of the first occurrence of value in the entire ArrayList, if found; otherwise,-1.

Remarks

This method can be overridden by a derived class.

The ArrayList is searched forwards from the beginning to the end.

See Also

ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList.IndexOf Overload List | LastIndexOf