Contains Method

ICollectionView.Contains Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Indicates whether the specified item belongs to this collection view.

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

'Declaration
Function Contains ( _
	item As Object _
) As Boolean

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.

Implementations of this method should not make any assumptions about whether the item belongs to the underlying collection if it does not belong to this view of the collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft