共用方式為


ConnectionManager.InfoMessage Event

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

命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

語法

'宣告
Public Event InfoMessage As SqlInfoMessageEventHandler
public event SqlInfoMessageEventHandler InfoMessage
public:
event SqlInfoMessageEventHandler^ InfoMessage {
    void add (SqlInfoMessageEventHandler^ value);
    void remove (SqlInfoMessageEventHandler^ value);
}
/** @event */
public void add_InfoMessage (SqlInfoMessageEventHandler value)

/** @event */
public void remove_InfoMessage (SqlInfoMessageEventHandler value)
JScript 支援事件的使用,但不支援新事件的宣告。

備註

The event is handled by the specified event handler.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

ConnectionManager Class
ConnectionManager Members
Microsoft.SqlServer.Management.Common Namespace