DataReplicationProtectedItemProperties Constructor

Definition

Initializes a new instance of DataReplicationProtectedItemProperties.

public DataReplicationProtectedItemProperties (string policyName, string replicationExtensionName, Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemModelCustomProperties customProperties);
new Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationProtectedItemProperties : string * string * Azure.ResourceManager.RecoveryServicesDataReplication.Models.ProtectedItemModelCustomProperties -> Azure.ResourceManager.RecoveryServicesDataReplication.Models.DataReplicationProtectedItemProperties
Public Sub New (policyName As String, replicationExtensionName As String, customProperties As ProtectedItemModelCustomProperties)

Parameters

policyName
String

Gets or sets the policy name.

replicationExtensionName
String

Gets or sets the replication extension name.

customProperties
ProtectedItemModelCustomProperties

Protected item model custom properties. Please note ProtectedItemModelCustomProperties 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 HyperVToAzStackHciProtectedItemModelCustomProperties, GeneralProtectedItemModelCustomProperties and VMwareToAzStackHciProtectedItemModelCustomProperties.

Exceptions

policyName, replicationExtensionName or customProperties is null.

Applies to