ICancelAddNew.CancelNew Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: