共用方式為


RuleBasedBackupPolicy Constructor

Definition

Initializes a new instance of RuleBasedBackupPolicy.

public RuleBasedBackupPolicy (System.Collections.Generic.IEnumerable<string> dataSourceTypes, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBasePolicyRule> policyRules);
new Azure.ResourceManager.DataProtectionBackup.Models.RuleBasedBackupPolicy : seq<string> * seq<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBasePolicyRule> -> Azure.ResourceManager.DataProtectionBackup.Models.RuleBasedBackupPolicy
Public Sub New (dataSourceTypes As IEnumerable(Of String), policyRules As IEnumerable(Of DataProtectionBasePolicyRule))

Parameters

dataSourceTypes
IEnumerable<String>

Type of datasource for the backup management.

policyRules
IEnumerable<DataProtectionBasePolicyRule>

Policy rule dictionary that contains rules for each backuptype i.e Full/Incremental/Logs etc Please note DataProtectionBasePolicyRule 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 DataProtectionBackupRule and DataProtectionRetentionRule.

Exceptions

dataSourceTypes or policyRules is null.

Applies to