OleDbRowUpdatedEventArgs 类

定义

提供事件的数据 RowUpdated

public ref class OleDbRowUpdatedEventArgs sealed : System::Data::Common::RowUpdatedEventArgs
public sealed class OleDbRowUpdatedEventArgs : System.Data.Common.RowUpdatedEventArgs
type OleDbRowUpdatedEventArgs = class
    inherit RowUpdatedEventArgs
Public NotInheritable Class OleDbRowUpdatedEventArgs
Inherits RowUpdatedEventArgs
继承
OleDbRowUpdatedEventArgs

注解

完成 RowUpdated 行时 Update 将引发该事件。

使用 Update时,每个更新的数据行都会发生两个事件。 执行顺序如下所示:

  1. DataRow 中的值将移动到参数值。

  2. 引发 OnRowUpdating 事件。

  3. 该命令执行。

  4. 如果命令设置为 FirstReturnedRecord,则将第一个返回的结果置于该位置。DataRow

  5. 如果有输出参数,则它们放置在 DataRow中。

  6. 引发 OnRowUpdated 事件。

  7. 调用 AcceptChanges

构造函数

名称 说明
OleDbRowUpdatedEventArgs(DataRow, IDbCommand, StatementType, DataTableMapping)

初始化 OleDbRowUpdatedEventArgs 类的新实例。

属性

名称 说明
Command

获取 OleDbCommand 调用时 Update(DataSet) 执行的。

Errors

获取执行 Command 时.NET数据提供程序生成的任何错误。

(继承自 RowUpdatedEventArgs)
RecordsAffected

获取通过执行 SQL 语句更改、插入或删除的行数。

(继承自 RowUpdatedEventArgs)
Row

DataRow获取通过一个 Update(DataSet).

(继承自 RowUpdatedEventArgs)
RowCount

获取在一批更新的记录中处理的行数。

(继承自 RowUpdatedEventArgs)
StatementType

获取执行的 SQL 语句的类型。

(继承自 RowUpdatedEventArgs)
Status

UpdateStatus Command获取属性。

(继承自 RowUpdatedEventArgs)
TableMapping

DataTableMapping获取通过一个 Update(DataSet).

(继承自 RowUpdatedEventArgs)

方法

名称 说明
CopyToRows(DataRow[], Int32)

将对修改后的行的引用复制到提供的数组中。

(继承自 RowUpdatedEventArgs)
CopyToRows(DataRow[])

将对修改后的行的引用复制到提供的数组中。

(继承自 RowUpdatedEventArgs)
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于