BindingSource.ICancelAddNew.CancelNew(Int32) Method

Definition

Discards a pending new item from the collection.

void ICancelAddNew.CancelNew (int position);

Parameters

position
Int32

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

Implements

Remarks

The ICancelAddNew.CancelNew method rolls back a pending addition of an item previously added to the collection at the index specified by position. The position parameter is necessary because several new items can be simultaneously pending.

Applies to

Produit Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also