Raises the NewResource event when a new resource is created in the collection by calling InsertItem method to allow the event handlers to create their own resource type.
Namespace:
DlhSoft.Windows.ControlsAssembly: DlhSoft.ProjectData.Management.Controls (in DlhSoft.ProjectData.Management.Controls.dll)
Syntax
C# |
---|
protected internal virtual Object OnNewResource( out bool cancel, params Object[] parameters ) |
Visual Basic (Declaration) |
---|
Protected Friend Overridable Function OnNewResource ( _ <OutAttribute> ByRef cancel As Boolean, _ ParamArray parameters As Object() _ ) As Object |
Parameters
- cancel
- Type:
System..::.Boolean
%
Returns a value indicating whether the creation of the new item should be cancelled.
- parameters
- Type: array<
System..::.Object
>[]()[]
List of parameters used for actually creating the new resource.