Delegado ServerMessageEventHandler
The ServerMessageEventHandler class represents the method that handles the event raised by a server message.
Espacio de nombres: Microsoft.SqlServer.Management.Common
Ensamblado: Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxis
'Declaración
Public Delegate Sub ServerMessageEventHandler ( _
sender As Object, _
e As ServerMessageEventArgs _
)
'Uso
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 admite el uso de delegados, pero no la declaración de otros nuevos.
Parámetros
- sender
Tipo: System. . :: . .Object
An Object system object value that specifies the object that raised the event.
- e
Tipo: Microsoft.SqlServer.Management.Common. . :: . .ServerMessageEventArgs
An ServerMessageEventArgs value that specifies the arguments passed to the event handler.
Vea también