Share via


Événement PercentComplete

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Syntaxe

'Déclaration
Public Event PercentComplete As PercentCompleteEventHandler
'Utilisation
Dim instance As BackupRestoreBase
Dim handler As PercentCompleteEventHandler

AddHandler instance.PercentComplete, handler
public event PercentCompleteEventHandler PercentComplete
public:
 event PercentCompleteEventHandler^ PercentComplete {
    void add (PercentCompleteEventHandler^ value);
    void remove (PercentCompleteEventHandler^ value);
}
member PercentComplete : IEvent<PercentCompleteEventHandler,
    PercentCompleteEventArgs>
JScript prend en charge l'utilisation d'événements, mais pas la déclaration de nouveaux événements.

Notes

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 PercentCompleteEventArgs containing data related to this event. The following properties provide information specific to this event.

Property

Description

Error

Occurs when an error is raised.

Percent

The percentage that represents a completion unit. After completing every unit, an event is raised.