Share via


DataProtectionBackupRule Constructor

Definition

Initializes a new instance of DataProtectionBackupRule.

public DataProtectionBackupRule (string name, Azure.ResourceManager.DataProtectionBackup.Models.DataStoreInfoBase dataStore, Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupTriggerContext trigger);
new Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupRule : string * Azure.ResourceManager.DataProtectionBackup.Models.DataStoreInfoBase * Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupTriggerContext -> Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupRule
Public Sub New (name As String, dataStore As DataStoreInfoBase, trigger As DataProtectionBackupTriggerContext)

Parameters

name
String
dataStore
DataStoreInfoBase

DataStoreInfo base.

trigger
DataProtectionBackupTriggerContext

Trigger context Please note DataProtectionBackupTriggerContext 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 AdhocBasedBackupTriggerContext and ScheduleBasedBackupTriggerContext.

Exceptions

name, dataStore or trigger is null.

Applies to