DataTable.OnTableCleared(DataTableClearEventArgs) 方法

定义

引发 TableCleared 事件。Raises the TableCleared event.

protected:
 virtual void OnTableCleared(System::Data::DataTableClearEventArgs ^ e);
protected virtual void OnTableCleared (System.Data.DataTableClearEventArgs e);
abstract member OnTableCleared : System.Data.DataTableClearEventArgs -> unit
override this.OnTableCleared : System.Data.DataTableClearEventArgs -> unit
Protected Overridable Sub OnTableCleared (e As DataTableClearEventArgs)

参数

e
DataTableClearEventArgs

一个包含事件数据的 DataTableClearEventArgsA DataTableClearEventArgs that contains the event data.

注解

引发 TableCleared 事件,该事件在所有行都已成功清除之后但在 Clear 方法将控制权返回给调用方之前立即触发。Raises the TableCleared event, which is fired immediately after all rows have been successfully cleared but before the Clear method returns control back to the caller.

引发事件时,将通过委托调用事件处理程序。Raising an event invokes the event handler through a delegate. 有关概述,请参阅处理和引发事件For an overview, see Handling and Raising Events.

适用于

另请参阅