Export (0) Print
Expand All

IList.Contains Method

When implemented by a class, determines whether the IList contains a specific value.

[Visual Basic]
Function Contains( _
   ByVal value As Object _
) As Boolean
[C#]
bool Contains(
   object value
);
[C++]
bool Contains(
   Object* value
);
[JScript]
function Contains(
   value : Object
) : Boolean;

Parameters

value
The Object to locate in the IList.

Return Value

true if the Object is found in the IList; otherwise, false.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

IList Interface | IList Members | System.Collections Namespace

Show:
© 2014 Microsoft