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

ArmRecoveryServicesBackupModelFactory.BackupProtectionIntentData 方法

定义

初始化 BackupProtectionIntentData 的新实例。

public static Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentData BackupProtectionIntentData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionIntent properties = default, Azure.ETag? eTag = default);
static member BackupProtectionIntentData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesBackup.Models.BackupGenericProtectionIntent * Nullable<Azure.ETag> -> Azure.ResourceManager.RecoveryServicesBackup.BackupProtectionIntentData
Public Shared Function BackupProtectionIntentData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional properties As BackupGenericProtectionIntent = Nothing, Optional eTag As Nullable(Of ETag) = Nothing) As BackupProtectionIntentData

参数

name
String

名称。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

tags
IDictionary<String,String>

标记。

location
AzureLocation

位置。

properties
BackupGenericProtectionIntent

ProtectionIntentResource 属性请注意 BackupGenericProtectionIntent 是基类。 根据方案,可能需要在此处分配基类的派生类,或者需要将此属性强制转换为可能的派生类之一。 可用的派生类包括 ResourceProtectionIntentWorkloadAutoProtectionIntentWorkloadContainerAutoProtectionIntentWorkloadSqlAutoProtectionIntentRecoveryServiceVaultProtectionIntent

eTag
Nullable<ETag>

可选 ETag。

返回

用于模拟的新 BackupProtectionIntentData 实例。

适用于