共用方式為


ConnectionManager.InfoMessage Event

Definition

Occurs when SQL Server returns a warning or informational message. Uses SqlClient.SqlInfoMessageEventHandler.

public event System.Data.SqlClient.SqlInfoMessageEventHandler InfoMessage;
public event Microsoft.Data.SqlClient.SqlInfoMessageEventHandler InfoMessage;
member this.InfoMessage : System.Data.SqlClient.SqlInfoMessageEventHandler 
member this.InfoMessage : Microsoft.Data.SqlClient.SqlInfoMessageEventHandler 
Public Custom Event InfoMessage As SqlInfoMessageEventHandler 

Event Type

Applies to