ICancelAddNew::CancelNew Method (Int32)

 

Discards a pending new item from the collection.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

void CancelNew(
	int itemIndex
)

Parameters

itemIndex
Type: System::Int32

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

The CancelNew method rolls back a pending addition (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.

.NET Framework
Available since 2.0
Return to top
Show: