Name
RowUpdatingEventArgs
Synopsis
This System.EventArgs class provides data for
event handlers that react to the RowUpdating event
of the DataAdapter. This includes the command
that is about to be executed (Command), the type
of SQL statement the command will execute
(StatementType), and the relevant
System.Data.DataRow object (Row
). You can set the Status property to
System.Data.UpdateStatus.SkipCurrentRow to bypass
a row or
System.Data.UpdateStatus.SkipAllRemainingRows to
abort the update.
Each provider derives a provider-specific version of the
RowUpdatingEventArgs class. Although the
RowUpdating event is supported by most
DataAdapter objects, it isn’t
part of any interface or either base class
(DataAdapter or
System.Data.IDbDataAdapter). Hence, you
can’t attach a generic event handler.
public abstract class RowUpdatingEventArgs : EventArgs { // Protected Constructors protected RowUpdatingEventArgs(System.Data.DataRowdataRow, System.Data.IDbCommandcommand, System.Data.StatementTypestatementType, DataTableMappingtableMapping); // Public Instance Properties public IDbCommand Command{set; get; } public Exception Errors{set; get; } public DataRow Row{get; } public StatementType StatementType{get; } public UpdateStatus Status{set; get; } public DataTableMapping TableMapping{get; } }
Hierarchy
System.Object
→
System.EventArgs
→
RowUpdatingEventArgs
Subclasses
System.Data.OleDb.OleDbRowUpdatingEventArgs, System.Data.OracleClient.OracleRowUpdatingEventArgs, System.Data.SqlClient.SqlRowUpdatingEventArgs ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access