DataTable.OnTableNewRow(DataTableNewRowEventArgs) 方法

定义

引发 TableNewRow 事件。Raises the TableNewRow event.

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

参数

e
DataTableNewRowEventArgs

一个包含事件数据的 DataTableNewRowEventArgsA DataTableNewRowEventArgs that contains the event data.

注解

引发 TableNewRow 事件,该事件在使用 NewRow创建新 DataRow 之后触发。Raises the TableNewRow event, which fires after a new DataRow has been created using NewRow.

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

适用于

另请参阅