Aracılığıyla paylaş


SqlCeRowUpdatedEventArgs Class

Provides data for the RowUpdated event.

Inheritance Hierarchy

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

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public NotInheritable Class SqlCeRowUpdatedEventArgs _
    Inherits RowUpdatedEventArgs
'Usage
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

The SqlCeRowUpdatedEventArgs type exposes the following members.

Constructors

  Name Description
Public method SqlCeRowUpdatedEventArgs Initializes a new instance of the SqlCeRowUpdatedEventArgs class.

Top

Properties

  Name Description
Public property Command Gets the SqlCeCommand executed when Update is called.
Public property Errors (inherited from RowUpdatedEventArgs)
Public property RecordsAffected (inherited from RowUpdatedEventArgs)
Public property Row (inherited from RowUpdatedEventArgs)
Public property RowCount (inherited from RowUpdatedEventArgs)
Public property StatementType (inherited from RowUpdatedEventArgs)
Public property Status (inherited from RowUpdatedEventArgs)
Public property TableMapping (inherited from RowUpdatedEventArgs)

Top

Methods

  Name Description
Public method CopyToRows(array<DataRow[]) (inherited from RowUpdatedEventArgs)
Public method CopyToRows(array<DataRow[], Int32) (inherited from RowUpdatedEventArgs)
Public method Equals (inherited from Object)
Protected method Finalize (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetType (inherited from Object)
Protected method MemberwiseClone (inherited from Object)
Public method ToString (inherited from Object)

Top

Remarks

The RowUpdated event is raised when an Update to a row is completed.

When using Update, there are two events that occur for each data row updated. The order of execution is as follows:

  1. The values in the DataRow are moved to the parameter values.

  2. The OnRowUpdating event is raised.

  3. The command executes.

  4. If the command is set to FirstReturnedRecord, then the first returned result is placed in the DataRow.

  5. The OnRowUpdated event is raised.

  6. AcceptChanges is called.

Thread Safety

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.

See Also

Reference

System.Data.SqlServerCe Namespace