Partager via


IList.Contains Method

When implemented by a class, this method determines whether the IList collection contains a specified object.

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

Syntax

public bool Contains (
         Object value
)

Parameters

  • value
    The object you want to search for in the collection.

Return Value

true if the specified object was found in the IList 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

IList Interface
IList Members
System.Collections Namespace