RestoreInfo Constructor (String, String, Boolean, RestoreLocation , RestoreSecurity, String, String)


Applies To: SQL Server (starting with 2016)

Initializes a new instance of RestoreInfo using multiple parameters, including password.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)


public RestoreInfo(
    string file,
    string databaseName,
    bool allowOverwrite,
    RestoreLocation[] locations,
    RestoreSecurity security,
    string password,
    string dbStorageLocation
    String^ file,
    String^ databaseName,
    bool allowOverwrite,
    array<RestoreLocation^>^ locations,
    RestoreSecurity security,
    String^ password,
    String^ dbStorageLocation
new : 
        file:string *
        databaseName:string *
        allowOverwrite:bool *
        locations:RestoreLocation[] *
        security:RestoreSecurity *
        password:string *
        dbStorageLocation:string -> 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


  • file
    Type: System.String

    Name of the file for which information is to be restored.

  • databaseName
    Type: System.String

    Name of the database from which to extract the information to be restored.

  • allowOverwrite
    Type: System.Boolean

    A Boolean value. If true, the file information can be overwritten; otherwise, false.

  • password
    Type: System.String

    A string with the password that is required to read the restore file.

  • dbStorageLocation
    Type: System.String

    The location of the database storage.

See Also

RestoreInfo Overload
RestoreInfo Class
Microsoft.AnalysisServices Namespace

Return to top