System.ComponentModel.BindingList<T>.FindCore Method

Searches for the index of the item that has the specified property descriptor with the specified value, if searching is implemented in a derived class; otherwise, a NotSupportedException.

Syntax

protected virtual int FindCore (PropertyDescriptor prop, object key)

Parameters

prop
The System.ComponentModel.PropertyDescriptor to search for.
key
The value of property to match.

Returns

The zero-based index of the item that matches the property descriptor and contains the specified value.

Remarks

The System.ComponentModel.BindingList`1 class does not provide a base implementation of searching, and so BindingList`1.FindCore(PropertyDescriptor, object) always throws a NotSupportedException by default. To enable searching, derive from System.ComponentModel.BindingList`1 and perform the following tasks:

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0