Partager via


Délégué ServerMessageEventHandler

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

Espace de noms :  Microsoft.SqlServer.Management.Common
Assembly :  Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)

Syntaxe

'Déclaration
Public Delegate Sub ServerMessageEventHandler ( _
    sender As Object, _
    e As ServerMessageEventArgs _
)
'Utilisation
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 prend en charge l'utilisation de délégués, mais pas la déclaration de nouveaux délégués.

Paramètres