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 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

System.Data.SqlServerCe 命名空間