共用方式為


InfoMessage 事件

The event that occurs when the instance of SQL Server generates an informational message.

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Event InfoMessage As SqlInfoMessageEventHandler
'用途
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 支援事件的使用,但不支援新事件的宣告。

備註

The event is handled by the specified event handler.