RestoreInfo Constructor (String, String, Boolean, RestoreLocation , RestoreSecurity, String, String, ReadWriteMode)
Applies To: SQL Server (starting with 2016)
Initializes a new instance of RestoreInfo using multiple parameters, including password and the read/write mode of the database.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)
Syntax
public RestoreInfo(
string file,
string databaseName,
bool allowOverwrite,
RestoreLocation[] locations,
RestoreSecurity security,
string password,
string dbStorageLocation,
ReadWriteMode readWriteMode
)
public:
RestoreInfo(
String^ file,
String^ databaseName,
bool allowOverwrite,
array<RestoreLocation^>^ locations,
RestoreSecurity security,
String^ password,
String^ dbStorageLocation,
ReadWriteMode readWriteMode
)
new :
file:string *
databaseName:string *
allowOverwrite:bool *
locations:RestoreLocation[] *
security:RestoreSecurity *
password:string *
dbStorageLocation:string *
readWriteMode:ReadWriteMode -> RestoreInfo
Public Sub New (
file As String,
databaseName As String,
allowOverwrite As Boolean,
locations As RestoreLocation(),
security As RestoreSecurity,
password As String,
dbStorageLocation As String,
readWriteMode As ReadWriteMode
)
Parameters
file
Type: System.StringName of the file for which information is to be restored.
databaseName
Type: System.StringName of the database from which to extract the information to be restored.
allowOverwrite
Type: System.BooleanA Boolean value. If true, the file information can be overwritten; otherwise, false.
locations
Type: Microsoft.AnalysisServices.RestoreLocation[]An array of RestoreLocations for the remote objects to restored.
security
Type: Microsoft.AnalysisServices.RestoreSecurityA RestoreSecurity enumeration value that specifies what is going to happen to the Roles objects being restored.
password
Type: System.StringA string with the password that is required to read the restore file.
dbStorageLocation
Type: System.StringThe location of the database storage.
readWriteMode
Type: Microsoft.AnalysisServices.ReadWriteModeAn enumeration that describes the read/write state of the database.
See Also
RestoreInfo Overload
RestoreInfo Class
Microsoft.AnalysisServices Namespace
Return to top