DB2 Version 10.1 for Linux, UNIX, and Windows

DB2RowUpdatingEventArgs Class

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:
  1. The values in the DataRow are moved to the parameter values.
  2. The RowUpdating event is raised.
  3. The command executes.
  4. If UpdateRowSource is set to FirstReturnedRecord, the first returned result is placed in the DataRow.
  5. If there are output parameters, they are placed in the DataRow.
  6. The RowUpdated event is raised.
  7. 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