ServerMessageEventHandler 委托

The ServerMessageEventHandler class represents the method that handles the event raised by a server message.

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

语法

声明
Public Delegate Sub ServerMessageEventHandler ( _
    sender As Object, _
    e As ServerMessageEventArgs _
)
用法
Dim instance As New ServerMessageEventHandler(AddressOf HandlerMethod)
public delegate void ServerMessageEventHandler(
    Object sender,
    ServerMessageEventArgs e
)
public delegate void ServerMessageEventHandler(
    Object^ sender, 
    ServerMessageEventArgs^ e
)
type ServerMessageEventHandler = 
    delegate of 
        sender:Object * 
        e:ServerMessageEventArgs -> unit
JScript 支持使用委托,但不支持声明新委托。

参数