共用方式為


BackupRestoreBase.Information Event

Occurs when any informational message is issued by Microsoft SQL Server that cannot be handled by the CompleteNextMedia or PercentComplete events.

命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

語法

'宣告
Public Event Information As ServerMessageEventHandler
public event ServerMessageEventHandler Information
public:
event ServerMessageEventHandler^ Information {
    void add (ServerMessageEventHandler^ value);
    void remove (ServerMessageEventHandler^ value);
}
/** @event */
public void add_Information (ServerMessageEventHandler value)

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

範例

How to: Register Event Handlers and Subscribe to Event Handling in Visual Basic .NET

備註

In Microsoft JScript, you can handle the events defined by a class, but you cannot define your own.

只有 Microsoft .NET Framework 2.0 版支援此命名空間、類別或成員。

平台

開發平台

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

目標平台

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

請參閱

參考

BackupRestoreBase Class
BackupRestoreBase Members
Microsoft.SqlServer.Management.Smo Namespace

其他資源

Handling SMO Events
RESTORE (Transact-SQL)
BACKUP (Transact-SQL)
在 SQL Server 中備份和還原資料庫