Dela via


VaultRetentionPolicy(BackupRetentionPolicy, Int32) Constructor

Definition

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