你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureWorkloadSQLRestoreRequest 构造函数

定义

重载

AzureWorkloadSQLRestoreRequest()

初始化 AzureWorkloadSQLRestoreRequest 类的新实例。

AzureWorkloadSQLRestoreRequest(String, String, IDictionary<String, String>, TargetRestoreInfo, String, String, Nullable<Boolean>, Nullable<Boolean>, IList<SQLDataDirectoryMapping>)

初始化 AzureWorkloadSQLRestoreRequest 类的新实例。

AzureWorkloadSQLRestoreRequest()

初始化 AzureWorkloadSQLRestoreRequest 类的新实例。

public AzureWorkloadSQLRestoreRequest ();
Public Sub New ()

适用于

AzureWorkloadSQLRestoreRequest(String, String, IDictionary<String, String>, TargetRestoreInfo, String, String, Nullable<Boolean>, Nullable<Boolean>, IList<SQLDataDirectoryMapping>)

初始化 AzureWorkloadSQLRestoreRequest 类的新实例。

public AzureWorkloadSQLRestoreRequest (string recoveryType = default, string sourceResourceId = default, System.Collections.Generic.IDictionary<string,string> propertyBag = default, Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.TargetRestoreInfo targetInfo = default, string recoveryMode = default, string targetVirtualMachineId = default, bool? shouldUseAlternateTargetLocation = default, bool? isNonRecoverable = default, System.Collections.Generic.IList<Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.SQLDataDirectoryMapping> alternateDirectoryPaths = default);
new Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.AzureWorkloadSQLRestoreRequest : string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.TargetRestoreInfo * string * string * Nullable<bool> * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.SQLDataDirectoryMapping> -> Microsoft.Azure.Management.RecoveryServices.Backup.CrossRegionRestore.Models.AzureWorkloadSQLRestoreRequest
Public Sub New (Optional recoveryType As String = Nothing, Optional sourceResourceId As String = Nothing, Optional propertyBag As IDictionary(Of String, String) = Nothing, Optional targetInfo As TargetRestoreInfo = Nothing, Optional recoveryMode As String = Nothing, Optional targetVirtualMachineId As String = Nothing, Optional shouldUseAlternateTargetLocation As Nullable(Of Boolean) = Nothing, Optional isNonRecoverable As Nullable(Of Boolean) = Nothing, Optional alternateDirectoryPaths As IList(Of SQLDataDirectoryMapping) = Nothing)

参数

recoveryType
String

此恢复的类型。 可能的值包括:“Invalid”、“OriginalLocation”、“AlternateLocation”、“RestoreDisks”、“Offline”

sourceResourceId
String

正在恢复正在运行的工作负荷的 VM 的完全限定 ARM ID。

propertyBag
IDictionary<String,String>

特定于工作负荷的属性包。

targetInfo
TargetRestoreInfo

目标数据库的详细信息

recoveryMode
String

定义当前恢复模式是文件还原还是数据库还原。 可能的值包括:“Invalid”、“FileRecovery”、“WorkloadRecovery”

targetVirtualMachineId
String

这是目标 VM 的完整 ARM ID,例如 /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}

shouldUseAlternateTargetLocation
Nullable<Boolean>

默认选项设置为 true。 如果此值设置为 false,则必须提供备用数据目录

isNonRecoverable
Nullable<Boolean>

SQL 特定的属性,用户可以在尝试还原操作时选择设置不恢复

alternateDirectoryPaths
IList<SQLDataDirectoryMapping>

数据目录详细信息

适用于