你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmRecoveryServicesBackupModelFactory.ProtectableContainerResource 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ProtectableContainerResource 的新实例。
public static Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainerResource ProtectableContainerResource (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.ProtectableContainer properties = default, Azure.ETag? eTag = default);
static member ProtectableContainerResource : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainer * Nullable<Azure.ETag> -> Azure.ResourceManager.RecoveryServicesBackup.Models.ProtectableContainerResource
Public Shared Function ProtectableContainerResource (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 ProtectableContainer = Nothing, Optional eTag As Nullable(Of ETag) = Nothing) As ProtectableContainerResource
参数
ID。
- name
- String
名称。
- resourceType
- ResourceType
resourceType。
- systemData
- SystemData
systemData。
- tags
- IDictionary<String,String>
标记。
- location
- AzureLocation
位置。
- properties
- ProtectableContainer
ProtectableContainerResource 属性请注意 ProtectableContainer 是基类。 根据方案,可能需要在此处分配基类的派生类,或者需要将此属性强制转换为可能的派生类之一。 可用的派生类包括 StorageProtectableContainer 和 VmAppContainerProtectableContainer。
返回
用于模拟的新 ProtectableContainerResource 实例。