BindingSource.EndEdit 方法

定義

將暫止的變更套用至基礎資料來源。Applies pending changes to the underlying data source.

public:
 void EndEdit();
public void EndEdit ();
member this.EndEdit : unit -> unit
Public Sub EndEdit ()

備註

EndEdit 呼叫方法時,所有暫止的變更都會套用到基礎資料來源。When the EndEdit method is called, all pending changes are applied to the underlying data source.

除非資料來源所包含的物件會執行介面,否則此方法不會有任何作用 IEditableObjectThis method has no effect unless the objects contained by the data source implement the IEditableObject interface. 如果物件不會執行 IEditableObject 介面,則資料的變更會在每次變更之後立即複製到基礎資料來源。If the objects do not implement the IEditableObject interface, changes to the data are copied to the underlying data source immediately after each change.

這個方法會引發 ListChanged 事件。This method raises the ListChanged event.

適用於

另請參閱