OleDbRowUpdatedEventArgs 类
定义
为 RowUpdated 事件提供数据。Provides data for the RowUpdated event.
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
- 继承
注解
RowUpdated完成行后引发事件 Update 。The RowUpdated event is raised when an Update to a row is completed.
使用时 Update ,每个更新的数据行发生两个事件。When using Update, there are two events that occur for each data row updated. 执行顺序如下所示:The order of execution is as follows:
中的值 DataRow 将被移动到参数值中。The values in the DataRow are moved to the parameter values.
引发 OnRowUpdating 事件。The OnRowUpdating event is raised.
命令执行。The command executes.
如果命令设置为 FirstReturnedRecord,则第一个返回的结果将放置在中 DataRow 。If the command is set to FirstReturnedRecord, then the first returned result is placed in the DataRow.
如果有输出参数,则将它们放在中 DataRow 。If there are output parameters, they are placed in the DataRow.
引发 OnRowUpdated 事件。The OnRowUpdated event is raised.
调用 AcceptChanges。AcceptChanges is called.
构造函数
| OleDbRowUpdatedEventArgs(DataRow, IDbCommand, StatementType, DataTableMapping) |
初始化 OleDbRowUpdatedEventArgs 类的新实例。Initializes a new instance of the OleDbRowUpdatedEventArgs class. |
属性
| Command |
调用 Update(DataSet) 时执行的 OleDbCommand。Gets the OleDbCommand executed when Update(DataSet) is called. |
| Errors |
获取当 Command 执行时 .NET 数据提供程序生成的任何错误。Gets any errors generated by the .NET data provider when the Command was executed. (继承自 RowUpdatedEventArgs) |
| RecordsAffected |
通过执行 SQL 语句获取更改、插入或删除的行数。Gets the number of rows changed, inserted, or deleted by execution of the SQL statement. (继承自 RowUpdatedEventArgs) |
| Row |
获取通过 Update(DataSet) 发送的 DataRow。Gets the DataRow sent through an Update(DataSet). (继承自 RowUpdatedEventArgs) |
| RowCount |
获取在一批更新记录中处理的行数。Gets the number of rows processed in a batch of updated records. (继承自 RowUpdatedEventArgs) |
| StatementType |
获取所执行的 SQL 语句的类型。Gets the type of SQL statement executed. (继承自 RowUpdatedEventArgs) |
| Status |
获取 Command 属性的 UpdateStatus。Gets the UpdateStatus of the Command property. (继承自 RowUpdatedEventArgs) |
| TableMapping |
获取通过 Update(DataSet) 发送的 DataTableMapping。Gets the DataTableMapping sent through an Update(DataSet). (继承自 RowUpdatedEventArgs) |
方法
| CopyToRows(DataRow[]) |
将已修改的行的引用复制到提供的数组中。Copies references to the modified rows into the provided array. (继承自 RowUpdatedEventArgs) |
| CopyToRows(DataRow[], Int32) |
将已修改的行的引用复制到提供的数组中。Copies references to the modified rows into the provided array. (继承自 RowUpdatedEventArgs) |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |