Partilhar via


Evento ServerMessage

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

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxe

'Declaração
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 dá suporte ao uso de eventos, mas não à declaração de eventos novos.

Comentários

The event is handled by the ServerMessageEventHandler delegate.