BackupRestoreBase.NextMedia BackupRestoreBase.NextMedia BackupRestoreBase.NextMedia Event

Definition

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

public:
 event Microsoft::SqlServer::Management::Common::ServerMessageEventHandler ^ NextMedia;
public event Microsoft.SqlServer.Management.Common.ServerMessageEventHandler NextMedia;
Public Custom Event NextMedia As ServerMessageEventHandler 

Examples

Handling SMO Events

Remarks

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 <xref:Microsoft.SqlServer.Management.Common.ServerMessageEventArgs> containing data related to this event. The following property provides information specific to this event.

Property Description
<xref:Microsoft.SqlServer.Management.Common.ServerMessageEventArgs.Error%2A> Occurs when an error is raised.

Applies to