Cape Unit BaseOn Port Collection Adding New Method
Occurs before an item is added to the list.
Definition
Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
C#
protected void OnPortCollectionAddingNew(
AddingNewEventArgs args
)VB
Protected Sub OnPortCollectionAddingNew (
args As AddingNewEventArgs
)Parameters
- args AddingNewEventArgs
- A System.ComponentModel.AddingNewEventArgs that contains information about the event.
Remarks
The AddingNew event occurs before a new object is added to the collection
represented by the Items property. This event is raised after the AddNew method is
called, but before the new item is created and added to the internal list. By
handling this event, the programmer can provide custom item creation and insertion
behavior without being forced to derive from the BindingList>T< class.