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)

abstract Contains : 
        item:Object -> bool


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
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft