ConnectionManager.InfoMessage Event
The event that occurs when the instance of SQL Server generates an informational message.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)
Syntax
'Declaration
Public Event InfoMessage As SqlInfoMessageEventHandler
'Usage
Dim instance As ConnectionManager
Dim handler As SqlInfoMessageEventHandler
AddHandler instance.InfoMessage, handler
public event SqlInfoMessageEventHandler InfoMessage
public:
event SqlInfoMessageEventHandler^ InfoMessage {
void add (SqlInfoMessageEventHandler^ value);
void remove (SqlInfoMessageEventHandler^ value);
}
member InfoMessage : IEvent<SqlInfoMessageEventHandler,
SqlInfoMessageEventArgs>
JScript supports the use of events, but not the declaration of new ones.
Remarks
The event is handled by the specified event handler.