Freigeben über


InfoMessage-Ereignis

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 unterstützt die Verwendung von Ereignissen, aber nicht die Deklaration neuer Ereignisse.

Hinweise

The event is handled by the specified event handler.