Provides data for the RowUpdating event.
- Namespace:
- IBM®.Data.DB2®
- Assembly:
- IBM.Data.DB2 (in IBM.Data.DB2.dll)
Inheritance hierarchy
System.Object
System.EventArgs
System.Data.Common.RowUpdatingEventArgs
IBM.Data.DB2.DB2RowUpdatingEventArgs
Syntax
[Visual Basic]
NotInheritable Public Class DB2RowUpdatingEventArgs
Inherits RowUpdatingEventArgs
[C#]
public sealed class DB2RowUpdatingEventArgs : RowUpdatingEventArgs
[C++]
public __gc __sealed class DB2RowUpdatingEventArgs : public
RowUpdatingEventArgs
[JScript]
public class DB2RowUpdatingEventArgs extends RowUpdatingEventArgs
Remarks
The RowUpdating event is raised before an update to a row.
When using the
Update method, there are two events that occur for each
data row updated:
RowUpdating and
RowUpdated. The order of execution for an update operation is as follows:
- The values in the DataRow are moved to the
parameter values.
- The RowUpdating event is raised.
- The command executes.
- If UpdateRowSource is set to FirstReturnedRecord, the first returned result is placed in the DataRow.
- If there are output parameters, they are placed in the DataRow.
- The RowUpdated event is raised.
- AcceptChanges is called.
Thread safety
Any public static (Shared in Visual Basic) members of this type are safe for
multithreaded operations. Any instance members are not guaranteed
to be thread safe.
Version information
- Last update
- This topic was last updated for: IBM DB2 Version 9.5
- .NET Framework version
- Supported in: 2.0, 3.0,
3.5, and 4.0
- IBM Data Server Client
- Supported in: 8.1.2 and up