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

调用 Update(DataSet) 时执行的 OleDbCommand

Errors

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

(继承自 RowUpdatedEventArgs)
RecordsAffected

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

(继承自 RowUpdatedEventArgs)
Row

获取通过 Update(DataSet) 发送的 DataRow

(继承自 RowUpdatedEventArgs)
RowCount

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

(继承自 RowUpdatedEventArgs)
StatementType

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

(继承自 RowUpdatedEventArgs)
Status

获取 Command 属性的 UpdateStatus

(继承自 RowUpdatedEventArgs)
TableMapping

获取通过 Update(DataSet) 发送的 DataTableMapping

(继承自 RowUpdatedEventArgs)

方法

CopyToRows(DataRow[])

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

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

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

(继承自 RowUpdatedEventArgs)
Equals(Object)

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

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

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

(继承自 Object)

适用于