ICollectionView.Contains Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a value that indicates whether a given item belongs to this collection view.

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

bool Contains(
	object item
)

Parameters

item
Type: System.Object

The object to check.

Return Value

Type: System.Boolean

true if the item belongs to this collection view; otherwise, false.

This method does not make any assumptions about whether the item belongs to the underlying collection.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: