VaultRetentionPolicy(BackupRetentionPolicy, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of VaultRetentionPolicy.
public VaultRetentionPolicy (Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy vaultRetention, int snapshotRetentionInDays);
new Azure.ResourceManager.RecoveryServicesBackup.Models.VaultRetentionPolicy : Azure.ResourceManager.RecoveryServicesBackup.Models.BackupRetentionPolicy * int -> Azure.ResourceManager.RecoveryServicesBackup.Models.VaultRetentionPolicy
Public Sub New (vaultRetention As BackupRetentionPolicy, snapshotRetentionInDays As Integer)
Parameters
- vaultRetention
- BackupRetentionPolicy
Base class for retention policy. Please note BackupRetentionPolicy is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include LongTermRetentionPolicy and SimpleRetentionPolicy.
- snapshotRetentionInDays
- Int32
Exceptions
vaultRetention
is null.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET