DataTable.OnRowDeleting(DataRowChangeEventArgs) 方法

定义

引发 RowDeleting 事件。Raises the RowDeleting event.

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

参数

e
DataRowChangeEventArgs

包含事件数据的 DataRowChangeEventArgsA DataRowChangeEventArgs that contains the event data.

注解

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

继承者说明

OnRowDeleting(DataRowChangeEventArgs) 在派生类中重写时,请确保调用基类的 OnRowDeleting(DataRowChangeEventArgs) 方法。When overriding OnRowDeleting(DataRowChangeEventArgs) in a derived class, be sure to call the base class's OnRowDeleting(DataRowChangeEventArgs) method.

适用于

另请参阅