Evento ConnectionManager.ServerMessage
The event that occurs when SQL Server returns a warning or informational message on the current connection.
Spazio dei nomi Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Sintassi
'Dichiarazione
Public Event ServerMessage As ServerMessageEventHandler
'Utilizzo
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 supporta l'utilizzo di eventi, ma non la dichiarazione di nuovi eventi.
Osservazioni
The event is handled by the ServerMessageEventHandler delegate.