BackupRestoreBase.DatabaseFileGroups プロパティ

バックアップまたは復元操作の対象となる SQL Server ファイル グループを取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.SmoExtended (Microsoft.SqlServer.SmoExtended.dll)

構文

'宣言
Public ReadOnly Property DatabaseFileGroups As StringCollection 
    Get
'使用
Dim instance As BackupRestoreBase 
Dim value As StringCollection 

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

プロパティ値

型: System.Collections.Specialized.StringCollection
対象となるファイル グループ名の一覧を示す StringCollection システム オブジェクトの値です。既定では、値は指定されません。

説明

DatabaseFileGroups プロパティは、Action プロパティが Files に設定されている場合にのみ必要です。 Action プロパティが Files に設定されている場合、DatabaseFileGroups プロパティまたは DatabaseFiles プロパティに、バックアップまたは復元するファイル グループまたはファイルを示す値を指定する必要があります。

使用例

データベースおよびトランザクション ログのバックアップと復元

関連項目

参照

BackupRestoreBase クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

RESTORE (Transact-SQL)

BACKUP (Transact-SQL)