System.Data.OleDb.OleDbConnection.InfoMessage Event

Occurs when the provider sends a warning or an informational message.

Syntax

public event OleDbInfoMessageEventHandler InfoMessage

Remarks

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

The OleDbConnection.InfoMessage event occurs when a message with low severity is returned from the data source. Low severity messages are those that do not cause an exception. For Microsoft SQL Server, this includes error messages that have a severity of 10 or less

For more information and an example, see Working with Connection Events.

Requirements

Namespace: System.Data.OleDb
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0