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

Determines if an element is in the ArrayList.

[Visual Basic]
Overridable Public Function Contains( _
   ByVal item As Object _
) As Boolean
[C#]
public virtual bool Contains(
   object item
);
[C++]
public: virtual bool Contains(
   Object* item
);
[JScript]
public function Contains(
   item : Object
) : Boolean;

Parameters

item
The Object to search for in the ArrayList.

-or-

a null reference (in Visual Basic Nothing).

Return Value

true if item is found in the ArrayList; otherwise, false.

Remarks

This method can be overridden by a derived class.

This method performs a linear O(n) search and determines equality by calling Equals.

See Also

ArrayList Class | ArrayList Members | System.Collections Namespace