Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ItemCollection.Contains Method

Returns a value that indicates whether the specified item is in this view.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public override bool Contains(
	Object containItem
)

Parameters

containItem
Type: System.Object

The object to check.

Return Value

Type: System.Boolean
true to indicate that the item belongs to this collection and passes the active filter; otherwise, false.

Implements

IList.Contains(Object)
ICollectionView.Contains(Object)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft