System.ComponentModel.BindingList<T>.AddNew Method

Adds a new item to the collection.

Syntax

public T AddNew ()

Returns

The item added to the list.

Remarks

The BindingList`1.AddNew method adds a new item to the collection represented by the System.Collections.ObjectModel.Collection`1.Items property. To add a new item, the following logic is used:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

In contrast, calling the BindingList`1.CancelNew(int) method before the item is committed will cause the new item to be discarded.

This method raises the BindingList`1.ListChanged event when the new item is committed.

Requirements

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