BindingSource.ICancelAddNew.CancelNew(Int32) 方法

定義

從集合中捨棄暫止的新項目。Discards a pending new item from the collection.

 virtual void System.ComponentModel.ICancelAddNew.CancelNew(int position) = System::ComponentModel::ICancelAddNew::CancelNew;
void ICancelAddNew.CancelNew (int position);
abstract member System.ComponentModel.ICancelAddNew.CancelNew : int -> unit
override this.System.ComponentModel.ICancelAddNew.CancelNew : int -> unit
Sub CancelNew (position As Integer) Implements ICancelAddNew.CancelNew

參數

position
Int32

已加入集合中的項目之索引。The index of the item that was added to the collection.

實作

備註

ICancelAddNew.CancelNew方法會復原先前加入至指定之索引處的專案暫止加入集合 positionThe ICancelAddNew.CancelNew method rolls back a pending addition of an item previously added to the collection at the index specified by position. position參數是必要的,因為有數個新的專案可以同時暫止。The position parameter is necessary because several new items can be simultaneously pending.

適用於

另請參閱