Raises the Deleting event when Delete method is called to allow the event handlers to cancel the operation if needed.

Namespace:  DlhSoft.Windows.Controls
Assembly:  DlhSoft.ProjectData.Management.Controls (in DlhSoft.ProjectData.Management.Controls.dll)

Syntax

C#
protected internal virtual void OnDeleting(
	out bool cancel,
	IEnumerable<Object> items
)
Visual Basic (Declaration)
Protected Friend Overridable Sub OnDeleting ( _
	<OutAttribute> ByRef cancel As Boolean, _
	items As IEnumerable(Of Object) _
)

Parameters

cancel
Type: System..::.Boolean %
Returns a value indicating whether the deletiong of the items should be cancelled.
items
Type: System.Collections.Generic..::.IEnumerable<(Of <(Object>)>)
Specifies the items that are to be deleted.

See Also