Share via


DataRepeater.OnItemsRemoved Method (DataRepeaterAddRemoveItemsEventArgs)

 

Raises the ItemsRemoved event.

Namespace:   Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

protected virtual void OnItemsRemoved(
    DataRepeaterAddRemoveItemsEventArgs e
)
protected:
virtual void OnItemsRemoved(
    DataRepeaterAddRemoveItemsEventArgs^ e
)
abstract OnItemsRemoved : 
        e:DataRepeaterAddRemoveItemsEventArgs -> unit
override OnItemsRemoved : 
        e:DataRepeaterAddRemoveItemsEventArgs -> unit
Protected Overridable Sub OnItemsRemoved (
    e As DataRepeaterAddRemoveItemsEventArgs
)

Parameters

Remarks

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

The OnItemsRemoved method also enables 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 you override OnItemsRemoved in a derived class, make sure to call the OnItemsRemoved method of the base class so that registered delegates receive the event.

See Also

ItemsRemoved
DataRepeater Class
Microsoft.VisualBasic.PowerPacks Namespace
Introduction to the DataRepeater Control (Visual Studio)

Return to top