System.ComponentModel.ICancelAddNew.CancelNew Method

Discards a pending new item from the collection.

Syntax

public void CancelNew (int itemIndex)

Parameters

itemIndex
The index of the item that was previously added to the collection.

Remarks

The ICancelAddNew.CancelNew(int) method rolls back a pending addition (IBindingList.AddNew) of an item previously added to the collection at position itemIndex. The index parameter is necessary because several new items can be simultaneously pending.

Requirements

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