Raises the NewItem event when a new item is created in the collection to allow the event handlers to create their own item type.

Namespace:  DlhSoft.Windows.Data
Assembly:  DlhSoft.Data.Core (in DlhSoft.Data.Core.dll)

Syntax

C#
protected internal virtual Object OnNewItem(
	out bool cancel,
	params Object[] parameters
)
Visual Basic (Declaration)
Protected Friend Overridable Function OnNewItem ( _
	<OutAttribute> ByRef cancel As Boolean, _
	ParamArray parameters As Object() _
) As Object

Parameters

cancel
Type: System..::.Boolean %
Indicates whether the creation of the new item is cancelled.
parameters
Type: array< System..::.Object >[]()[]
List of parameters used for actually creating the new item.

Return Value

The newly created item.

See Also