BackupRestoreBase.DatabaseFileGroups Property
Gets the Microsoft SQL Server file groups targeted by the backup or restore operation.
Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntaxe
'Déclaration
Public ReadOnly Property DatabaseFileGroups As StringCollection
public StringCollection DatabaseFileGroups { get; }
public:
property StringCollection^ DatabaseFileGroups {
StringCollection^ get ();
}
/** @property */
public StringCollection get_DatabaseFileGroups ()
public function get DatabaseFileGroups () : StringCollection
Valeur de propriété
A StringCollection system object value that lists the names of the targeted file groups. By default, the value is unspecified.
Notes
The DatabaseFileGroups property is only required when the Action property is set to Files. When the Action property is set to Files, either the DatabaseFileGroups property or the DatabaseFiles property must be given a value to indicate which file groups or files to back up or restore.
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