共用方式為


NextMedia 事件

Occurs when the backup or restore operation exhausts the medium in a target device.

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

語法

'宣告
Public Event NextMedia As ServerMessageEventHandler
'用途
Dim instance As BackupRestoreBase
Dim handler As ServerMessageEventHandler

AddHandler instance.NextMedia, handler
public event ServerMessageEventHandler NextMedia
public:
 event ServerMessageEventHandler^ NextMedia {
    void add (ServerMessageEventHandler^ value);
    void remove (ServerMessageEventHandler^ value);
}
member NextMedia : IEvent<ServerMessageEventHandler,
    ServerMessageEventArgs>
JScript 支援事件的使用,但不支援新事件的宣告。

備註

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

Event Data

The event handler receives an argument of type ServerMessageEventArgs containing data related to this event. The following property provides information specific to this event.

Property

Description

Error

Occurs when an error is raised.