Powered by Zoomin Software. For more details please contactZoomin

DataDirect Connect for ADO.NET Data Provider Help

Event Handling

  • Last Updated: April 16, 2026
  • 1 minute read
    • ADO.NET
    • Documentation

The DB2nfoMessageEventHandler event is a delegate that represents the method that handles the InfoMessage event of a DB2Connection object.

It is defined as follows:

[Serializable]
public delegate void DB2InfoMessageEventHandler(
object sender,
DB2nfoMessageEventArgs e
);

where:

sender is the object that generated the event.

e is a DB2InfoMessageEventArgs object that describes the warning.

To retrieve warning information from the DB2 server, the application should add an instance of the delegate to the event (InfoMessage property of the DB2Connection object). The event handler is called every time the event happens until the delegate is removed. For more information on events and delegates, refer to the Microsoft .NET Framework SDK documentation.

TitleResults for “How to create a CRG?”Also Available inAlert