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
Azure SDK for .NET