Name

InfoMessage

Synopsis


{Sql |OleDb}InfoMessageEventHandler InfoMessage

Fires when a warning or informational messages is sent from a data source. If the message corresponds to an error, an exception is raised instead of this event being fired. Information about the message is stored in a provider-specific EventArgs object, such as OleDbInfoMessageEventArgs or SqlInfoMessageEventArgs.

This event isn’t used to receive specific error messages (in SQL Server, these are messages with a severity greater than 10) that will cause an exception to be thrown.