Share via


SqlCeRowUpdatedEventArgs 类

RowUpdated 事件提供数据。

继承层次结构

System.Object
  System.EventArgs
    System.Data.Common.RowUpdatedEventArgs
      System.Data.SqlServerCe.SqlCeRowUpdatedEventArgs

命名空间:  System.Data.SqlServerCe
程序集:  System.Data.SqlServerCe(在 System.Data.SqlServerCe.dll 中)

语法

声明
Public NotInheritable Class SqlCeRowUpdatedEventArgs _
    Inherits RowUpdatedEventArgs
用法
Dim instance As SqlCeRowUpdatedEventArgs
public sealed class SqlCeRowUpdatedEventArgs : RowUpdatedEventArgs
public ref class SqlCeRowUpdatedEventArgs sealed : public RowUpdatedEventArgs
[<SealedAttribute>]
type SqlCeRowUpdatedEventArgs =  
    class
        inherit RowUpdatedEventArgs
    end
public final class SqlCeRowUpdatedEventArgs extends RowUpdatedEventArgs

SqlCeRowUpdatedEventArgs 类型公开以下成员。

构造函数

  名称 说明
公共方法 SqlCeRowUpdatedEventArgs 初始化 SqlCeRowUpdatedEventArgs 类的一个新实例。

页首

属性

  名称 说明
公共属性 Command 获取在调用 Update 时执行的 SqlCeCommand
公共属性 Errors (继承自 RowUpdatedEventArgs
公共属性 RecordsAffected (继承自 RowUpdatedEventArgs
公共属性 Row (继承自 RowUpdatedEventArgs
公共属性 RowCount (继承自 RowUpdatedEventArgs
公共属性 StatementType (继承自 RowUpdatedEventArgs
公共属性 Status (继承自 RowUpdatedEventArgs
公共属性 TableMapping (继承自 RowUpdatedEventArgs

页首

方法

  名称 说明
公共方法 CopyToRows(array<DataRow[]) (继承自 RowUpdatedEventArgs
公共方法 CopyToRows(array<DataRow[], Int32) (继承自 RowUpdatedEventArgs
公共方法 Equals (继承自 Object
受保护方法 Finalize (继承自 Object
公共方法 GetHashCode (继承自 Object
公共方法 GetType (继承自 Object
受保护方法 MemberwiseClone (继承自 Object
公共方法 ToString (继承自 Object

页首

注释

对行的 Update 完成时引发 RowUpdated 事件。

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

  1. DataRow 中的值移至参数值。

  2. 引发 OnRowUpdating 事件。

  3. 执行命令。

  4. 如果该命令设置为 FirstReturnedRecord,则返回的第一项结果将放置在 DataRow 中。

  5. 引发 OnRowUpdated 事件。

  6. 调用 AcceptChanges

线程安全

此类型的任何公共静态(在 Microsoft Visual Basic 中为共享)成员是线程安全的。不保证所有实例成员都对于线程安全的。

请参阅

参考

System.Data.SqlServerCe 命名空间