Επεξεργασία

Κοινή χρήση μέσω


BindingList<T>.OnListChanged(ListChangedEventArgs) Method

Definition

Raises the ListChanged event.

protected:
 virtual void OnListChanged(System::ComponentModel::ListChangedEventArgs ^ e);
protected virtual void OnListChanged (System.ComponentModel.ListChangedEventArgs e);
abstract member OnListChanged : System.ComponentModel.ListChangedEventArgs -> unit
override this.OnListChanged : System.ComponentModel.ListChangedEventArgs -> unit
Protected Overridable Sub OnListChanged (e As ListChangedEventArgs)

Parameters

e
ListChangedEventArgs

A ListChangedEventArgs that contains the event data.

Remarks

The OnListChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnListChanged(ListChangedEventArgs) in a derived class, be sure to call the base class's OnListChanged(ListChangedEventArgs) method so that registered delegates receive the event.

Applies to

See also