SqlCeRowUpdatingEventArgs 類別
提供 RowUpdating 事件的資料。
命名空間: System.Data.SqlServerCe
組件: System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)
語法
'宣告
Public NotInheritable Class SqlCeRowUpdatingEventArgs _
Inherits RowUpdatingEventArgs
'用途
Dim instance As SqlCeRowUpdatingEventArgs
public sealed class SqlCeRowUpdatingEventArgs : RowUpdatingEventArgs
public ref class SqlCeRowUpdatingEventArgs sealed : public RowUpdatingEventArgs
[<SealedAttribute>]
type SqlCeRowUpdatingEventArgs =
class
inherit RowUpdatingEventArgs
end
public final class SqlCeRowUpdatingEventArgs extends RowUpdatingEventArgs
備註
對資料列執行 Update 之前,會先引發 RowUpdating 事件。
使用 Update 時,每個更新的資料列會發生兩個事件。執行的順序如下:
DataRow 中的值會移至參數值。
引發 OnRowUpdating 事件。
執行命令。
如果此命令設定為 FirstReturnedRecord,則傳回的第一個結果會放置在 DataRow 中。
引發 OnRowUpdated 事件。
呼叫 AcceptChanges。
繼承階層
System. . :: . .Object
System. . :: . .EventArgs
System.Data.Common. . :: . .RowUpdatingEventArgs
System.Data.SqlServerCe..::..SqlCeRowUpdatingEventArgs
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.