共用方式為


ConnectionManager.ServerMessage Event

Definition

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

public event Microsoft.SqlServer.Management.Common.ServerMessageEventHandler ServerMessage;
member this.ServerMessage : Microsoft.SqlServer.Management.Common.ServerMessageEventHandler 
Public Custom Event ServerMessage As ServerMessageEventHandler 

Event Type

Applies to