This documentation is archived and is not being maintained.

OdbcConnection.InfoMessage Event

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Occurs when the ODBC driver sends a warning or an informational message.

[Visual Basic]
Public Event InfoMessage As OdbcInfoMessageEventHandler
[C#]
public event OdbcInfoMessageEventHandler InfoMessage;
[C++]
public: __event OdbcInfoMessageEventHandler* InfoMessage;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type OdbcInfoMessageEventArgs containing data related to this event. The following OdbcInfoMessageEventArgs properties provide information specific to this event.

Property Description
Errors Gets the collection of warnings sent from the data source.
Message Gets the full text of the error sent from the database.

Remarks

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

OdbcConnection Class | OdbcConnection Members | System.Data.Odbc Namespace

Show: