RestoreInfo Constructor (String, String, Boolean, RestoreLocation[], RestoreSecurity)
Applies To: SQL Server (starting with 2016)
Initializes a new instance of RestoreInfo using a file, database name , overwrite indicator, an array of restore locations, and a security definition for the roles to be restored.
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
)
public:
RestoreInfo(
String^ file,
String^ databaseName,
bool allowOverwrite,
array<RestoreLocation^>^ locations,
RestoreSecurity security
)
new :
file:string *
databaseName:string *
allowOverwrite:bool *
locations:RestoreLocation[] *
security:RestoreSecurity -> RestoreInfo
Public Sub New (
file As String,
databaseName As String,
allowOverwrite As Boolean,
locations As RestoreLocation(),
security As RestoreSecurity
)
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.
See Also
RestoreInfo Overload
RestoreInfo Class
Microsoft.AnalysisServices Namespace
Return to top