Événement ConnectionManager.ServerMessage
The event that occurs when SQL Server returns a warning or informational message on the current connection.
Espace de noms : Microsoft.SqlServer.Management.Common
Assembly : Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Syntaxe
'Déclaration
Public Event ServerMessage As ServerMessageEventHandler
'Utilisation
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 prend en charge l'utilisation d'événements, mais pas la déclaration de nouveaux événements.
Notes
The event is handled by the ServerMessageEventHandler delegate.