DataRepeater.OnItemCloning Method (DataRepeaterItemCloneEventArgs)

 

Raises the ItemCloning event.

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

Syntax

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

Parameters

Remarks

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

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

See Also

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

Return to top