DbDataAdapter.CreateRowUpdatingEvent(DataRow, IDbCommand, StatementType, DataTableMapping) 方法

定义

初始化 RowUpdatingEventArgs 类的新实例。Initializes a new instance of the RowUpdatingEventArgs class.

protected:
 virtual System::Data::Common::RowUpdatingEventArgs ^ CreateRowUpdatingEvent(System::Data::DataRow ^ dataRow, System::Data::IDbCommand ^ command, System::Data::StatementType statementType, System::Data::Common::DataTableMapping ^ tableMapping);
protected:
 abstract System::Data::Common::RowUpdatingEventArgs ^ CreateRowUpdatingEvent(System::Data::DataRow ^ dataRow, System::Data::IDbCommand ^ command, System::Data::StatementType statementType, System::Data::Common::DataTableMapping ^ tableMapping);
protected virtual System.Data.Common.RowUpdatingEventArgs CreateRowUpdatingEvent (System.Data.DataRow dataRow, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping);
protected abstract System.Data.Common.RowUpdatingEventArgs CreateRowUpdatingEvent (System.Data.DataRow dataRow, System.Data.IDbCommand command, System.Data.StatementType statementType, System.Data.Common.DataTableMapping tableMapping);
abstract member CreateRowUpdatingEvent : System.Data.DataRow * System.Data.IDbCommand * System.Data.StatementType * System.Data.Common.DataTableMapping -> System.Data.Common.RowUpdatingEventArgs
override this.CreateRowUpdatingEvent : System.Data.DataRow * System.Data.IDbCommand * System.Data.StatementType * System.Data.Common.DataTableMapping -> System.Data.Common.RowUpdatingEventArgs
abstract member CreateRowUpdatingEvent : System.Data.DataRow * System.Data.IDbCommand * System.Data.StatementType * System.Data.Common.DataTableMapping -> System.Data.Common.RowUpdatingEventArgs

参数

dataRow
DataRow

更新数据源的 DataRowThe DataRow that updates the data source.

command
IDbCommand

要在 IDbCommand 过程中执行的 Update(DataSet)The IDbCommand to execute during the Update(DataSet).

statementType
StatementType

该命令是否为 UPDATE、INSERT、DELETE 或 SELECT 语句。Whether the command is an UPDATE, INSERT, DELETE, or SELECT statement.

tableMapping
DataTableMapping

DataTableMapping 对象。A DataTableMapping object.

返回

RowUpdatingEventArgs 类的新实例。A new instance of the RowUpdatingEventArgs class.

实施者说明

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

适用于

另请参阅