ServerMessage 事件

The event that occurs when SQL Server returns a warning or informational message on the current connection.

命名空间:  Microsoft.SqlServer.Management.Common
程序集:  Microsoft.SqlServer.ConnectionInfo(在 Microsoft.SqlServer.ConnectionInfo.dll 中)

语法

声明
Public Event ServerMessage As ServerMessageEventHandler
用法
Dim instance As ConnectionManager
Dim handler As ServerMessageEventHandler

AddHandler instance.ServerMessage, handler
public event ServerMessageEventHandler ServerMessage
public:
 event ServerMessageEventHandler^ ServerMessage {
    void add (ServerMessageEventHandler^ value);
    void remove (ServerMessageEventHandler^ value);
}
member ServerMessage : IEvent<ServerMessageEventHandler,
    ServerMessageEventArgs>
JScript 支持使用事件,但不支持声明新事件。

注释

The event is handled by the ServerMessageEventHandler delegate.