Editare

Partajați prin


OleDbConnection.InfoMessage Event

Definition

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

public:
 event System::Data::OleDb::OleDbInfoMessageEventHandler ^ InfoMessage;
public event System.Data.OleDb.OleDbInfoMessageEventHandler? InfoMessage;
[System.Data.DataSysDescription("DbConnection_InfoMessage")]
public event System.Data.OleDb.OleDbInfoMessageEventHandler InfoMessage;
public event System.Data.OleDb.OleDbInfoMessageEventHandler InfoMessage;
member this.InfoMessage : System.Data.OleDb.OleDbInfoMessageEventHandler 
[<System.Data.DataSysDescription("DbConnection_InfoMessage")>]
member this.InfoMessage : System.Data.OleDb.OleDbInfoMessageEventHandler 
Public Custom Event InfoMessage As OleDbInfoMessageEventHandler 

Event Type

Attributes

Remarks

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

The 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 Connection Events.

Applies to