Compartir a través de


ServerMessage Evento

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

Espacio de nombres:  Microsoft.SqlServer.Management.Common
Ensamblado:  Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxis

'Declaración
Public Event ServerMessage As ServerMessageEventHandler
'Uso
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 admite el uso de eventos, pero no la declaración de otros nuevos.

Notas

The event is handled by the ServerMessageEventHandler delegate.