Поделиться через


Событие 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.