DB2 Version 9.7 for Linux, UNIX, and Windows

DB2Connection.InfoMessage Event

Occurs when the IBM Data Server Provider for .NET sends a warning or an informational message.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax

[Visual Basic]
Public Event InfoMessage As DB2InfoMessageEventHandler

[C#]
public event DB2InfoMessageEventHandler
 InfoMessage;
[C++]
public: __event DB2InfoMessageEventHandler
* InfoMessage;
[JScript] In JScript(R), you can handle the events defined by a class, but you cannot declare new events.

Event data

Errors Gets the collection of warnings sent from the database.

Remarks

Clients that want to process warnings or informational messages sent by the server should create a DB2InfoMessageEventHandler delegate to listen to this event.