Partager via


Propriété DatabaseFiles

Gets the operating system files targeted by the backup or restore operation.

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

Syntaxe

'Déclaration
Public ReadOnly Property DatabaseFiles As StringCollection
    Get
'Utilisation
Dim instance As BackupRestoreBase
Dim value As StringCollection

value = instance.DatabaseFiles
public StringCollection DatabaseFiles { get; }
public:
property StringCollection^ DatabaseFiles {
    StringCollection^ get ();
}
member DatabaseFiles : StringCollection
function get DatabaseFiles () : StringCollection

Valeur de propriété

Type : System.Collections.Specialized. . :: . .StringCollection
A StringCollection system object value that lists the names of the targeted files. By default, the value is unspecified.

Notes

The DatabaseFiles 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.