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.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