Contains Method

ICollectionView.Contains Method (Object)

 

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:
© 2016 Microsoft