Bewerken

Delen via


CurrencyManager.OnItemChanged(ItemChangedEventArgs) Method

Definition

Raises the ItemChanged event.

protected:
 virtual void OnItemChanged(System::Windows::Forms::ItemChangedEventArgs ^ e);
protected virtual void OnItemChanged (System.Windows.Forms.ItemChangedEventArgs e);
abstract member OnItemChanged : System.Windows.Forms.ItemChangedEventArgs -> unit
override this.OnItemChanged : System.Windows.Forms.ItemChangedEventArgs -> unit
Protected Overridable Sub OnItemChanged (e As ItemChangedEventArgs)

Parameters

e
ItemChangedEventArgs

An ItemChangedEventArgs 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 OnItemChanged 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 OnItemChanged(ItemChangedEventArgs) in a derived class, be sure to call the base class' OnItemChanged(ItemChangedEventArgs) method so that registered delegates receive the event.

Applies to

See also