Partager via


BackupRestoreBase.PercentCompleteNotification Property

Gets or sets the percentage interval for PercentCompleteEventHandler event handler calls.

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Property PercentCompleteNotification As Integer
public int PercentCompleteNotification { get; set; }
public:
property int PercentCompleteNotification {
    int get ();
    void set (int value);
}
/** @property */
public int get_PercentCompleteNotification ()

/** @property */
public void set_PercentCompleteNotification (int value)
public function get PercentCompleteNotification () : int

public function set PercentCompleteNotification (value : int)

Valeur de propriété

An Int32 that specifies the percentage interval for the event handler calls. The default value is 10.

Notes

For the default value 10, PercentCompleteEventHandler is called for every 10 percent of the task completed. The event handler might report slightly later if the backup or restore procedure does not release the process to the event handler immediately after the event is raised.

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Exemple

How to: Back Up Databases and Transaction Logs in Visual Basic .NET

Sécurité des threads

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

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

Autres ressources

RESTORE (Transact-SQL)
BACKUP (Transact-SQL)
Sauvegarde et restauration de bases de données dans SQL Server