DataTable.OnRowChanging(DataRowChangeEventArgs) 方法

定义

引发 RowChanging 事件。Raises the RowChanging event.

protected:
 virtual void OnRowChanging(System::Data::DataRowChangeEventArgs ^ e);
protected virtual void OnRowChanging (System.Data.DataRowChangeEventArgs e);
abstract member OnRowChanging : System.Data.DataRowChangeEventArgs -> unit
override this.OnRowChanging : System.Data.DataRowChangeEventArgs -> unit
Protected Overridable Sub OnRowChanging (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.

继承者说明

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

适用于

另请参阅