Partager via


ArrayList.Contains Method

Determines whether a specified object is contained in the ArrayList collection.

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual bool Contains (
         Objectitem
)

Parameters

  • item
    The object you want to locate in the ArrayList collection. This value can be a null reference.

Return Value

true if the specified object is found in the ArrayList collection; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

ArrayList Class
ArrayList Members
System.Collections Namespace