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 支援事件的使用,但不支援新事件的宣告。