System.ComponentModel.BindingList<T>.AddNewCore Method

Adds a new item to the end of the collection.

Syntax

protected virtual object AddNewCore ()

Returns

The item that was added to the collection.

Remarks

The BindingList`1.AddNewCore method adds a new item to the collection represented by the System.Collections.ObjectModel.Collection`1.Items property. BindingList`1.AddNewCore raises the BindingList`1.AddingNew event. This allows you to add a new item by setting the AddingNewEventArgs.NewObject property of the System.ComponentModel.AddingNewEventArgs parameter to the new item. Otherwise, the new item is automatically created through its public default constructor.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0