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

ArmSqlModelFactory.LongTermRetentionPolicyData 方法

定义

初始化 LongTermRetentionPolicyData 的新实例。

public static Azure.ResourceManager.Sql.LongTermRetentionPolicyData LongTermRetentionPolicyData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string weeklyRetention = default, string monthlyRetention = default, string yearlyRetention = default, int? weekOfYear = default);
static member LongTermRetentionPolicyData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * string * Nullable<int> -> Azure.ResourceManager.Sql.LongTermRetentionPolicyData
Public Shared Function LongTermRetentionPolicyData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional weeklyRetention As String = Nothing, Optional monthlyRetention As String = Nothing, Optional yearlyRetention As String = Nothing, Optional weekOfYear As Nullable(Of Integer) = Nothing) As LongTermRetentionPolicyData

参数

name
String

名称。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

weeklyRetention
String

采用 ISO 8601 格式的 LTR 备份的每周保留策略。

monthlyRetention
String

采用 ISO 8601 格式的 LTR 备份的每月保留策略。

yearlyRetention
String

采用 ISO 8601 格式的 LTR 备份的年度保留策略。

weekOfYear
Nullable<Int32>

采用 ISO 8601 格式的年度备份的一年中的一周。

返回

用于模拟的新 LongTermRetentionPolicyData 实例。

适用于