Delen via


BackupRestoreBase.PercentComplete Event

Occurs when a backup or restore operation reaches a completion unit.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Event PercentComplete As PercentCompleteEventHandler
public event PercentCompleteEventHandler PercentComplete
public:
event PercentCompleteEventHandler^ PercentComplete {
    void add (PercentCompleteEventHandler^ value);
    void remove (PercentCompleteEventHandler^ value);
}
/** @event */
public void add_PercentComplete (PercentCompleteEventHandler value)

/** @event */
public void remove_PercentComplete (PercentCompleteEventHandler value)
JScript supports the use of events, but not the declaration of new ones.

Example

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

Remarks

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

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

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

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

Other Resources

Handling SMO Events
RESTORE (Transact-SQL)
BACKUP (Transact-SQL)
Backing Up and Restoring Databases in SQL Server