Compartir a través de


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 (
         Object item
)

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, 4.1, and 4.2.

See Also

Reference

ArrayList Class
ArrayList Members
System.Collections Namespace