BackupInfo Constructor (String, Boolean, Boolean, BackupLocation , Boolean, String)
Applies To: SQL Server (starting with 2016)
Initializes a new instance of the BackupInfo class using a file name, indicates whether overwrite and backup of remote partitions are allowed, specifies the location for the backup to be stored, indicates whether compression is applied, and specifies a password.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)
Syntax
public BackupInfo(
string file,
bool allowOverwrite,
bool backupRemotePartitions,
BackupLocation[] locations,
bool applyCompression,
string password
)
public:
BackupInfo(
String^ file,
bool allowOverwrite,
bool backupRemotePartitions,
array<BackupLocation^>^ locations,
bool applyCompression,
String^ password
)
new :
file:string *
allowOverwrite:bool *
backupRemotePartitions:bool *
locations:BackupLocation[] *
applyCompression:bool *
password:string -> BackupInfo
Public Sub New (
file As String,
allowOverwrite As Boolean,
backupRemotePartitions As Boolean,
locations As BackupLocation(),
applyCompression As Boolean,
password As String
)
Parameters
file
Type: System.StringThe file name to backup to.
allowOverwrite
Type: System.Booleantrue if overwrite is allowed; otherwise, false.
backupRemotePartitions
Type: System.Booleantrue if backup of remote partitions is allowed; otherwise, false.
locations
Type: Microsoft.AnalysisServices.BackupLocation[]The locations where the backup will be stored.
applyCompression
Type: System.Booleantrue if compression is applied during the backup process; otherwise, false.
password
Type: System.StringA String containing the password.
See Also
BackupInfo Overload
BackupInfo Class
Microsoft.AnalysisServices Namespace
Return to top