BindingSource.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

An EventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

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