Condividi tramite


DataReplicationProtectedItemProperties Constructors

Definition

Overloads

DataReplicationProtectedItemProperties(String, String, DataReplicationProtectedItemCustomProperties)

Source:
DataReplicationProtectedItemProperties.cs

Initializes a new instance of DataReplicationProtectedItemProperties.

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

Parameters

policyName
String

Gets or sets the policy name.

replicationExtensionName
String

Gets or sets the replication extension name.

customProperties
DataReplicationProtectedItemCustomProperties

Protected item model custom properties. Please note DataReplicationProtectedItemCustomProperties 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 HyperVToAzStackHciProtectedItemCustomProperties and VMwareToAzStackHciProtectedItemCustomProperties.

Exceptions

policyName, replicationExtensionName or customProperties is null.

Applies to

DataReplicationProtectedItemProperties(String, String, ProtectedItemModelCustomProperties)

Source:
DataReplicationProtectedItemProperties.cs

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