TargetCopySetting(DataProtectionBackupCopySetting, DataStoreInfoBase) 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 TargetCopySetting.
public TargetCopySetting (Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupCopySetting copyAfter, Azure.ResourceManager.DataProtectionBackup.Models.DataStoreInfoBase dataStore);
new Azure.ResourceManager.DataProtectionBackup.Models.TargetCopySetting : Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupCopySetting * Azure.ResourceManager.DataProtectionBackup.Models.DataStoreInfoBase -> Azure.ResourceManager.DataProtectionBackup.Models.TargetCopySetting
Public Sub New (copyAfter As DataProtectionBackupCopySetting, dataStore As DataStoreInfoBase)
Parameters
- copyAfter
- DataProtectionBackupCopySetting
It can be CustomCopyOption or ImmediateCopyOption. Please note DataProtectionBackupCopySetting 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 CopyOnExpirySetting, CustomCopySetting and ImmediateCopySetting.
- dataStore
- DataStoreInfoBase
Info of target datastore.
Exceptions
copyAfter
or dataStore
is null.
Applies to
Azure SDK for .NET