共用方式為


RecoveryPlanAction Constructor

Definition

Initializes a new instance of RecoveryPlanAction.

public RecoveryPlanAction (string actionName, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ReplicationProtectedItemOperation> failoverTypes, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.PossibleOperationsDirection> failoverDirections, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryPlanActionDetails customDetails);
new Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryPlanAction : string * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ReplicationProtectedItemOperation> * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.PossibleOperationsDirection> * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryPlanActionDetails -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryPlanAction
Public Sub New (actionName As String, failoverTypes As IEnumerable(Of ReplicationProtectedItemOperation), failoverDirections As IEnumerable(Of PossibleOperationsDirection), customDetails As RecoveryPlanActionDetails)

Parameters

actionName
String

The action name.

failoverTypes
IEnumerable<ReplicationProtectedItemOperation>

The list of failover types.

failoverDirections
IEnumerable<PossibleOperationsDirection>

The list of failover directions.

customDetails
RecoveryPlanActionDetails

The custom details. Please note RecoveryPlanActionDetails 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 RecoveryPlanAutomationRunbookActionDetails, RecoveryPlanManualActionDetails and RecoveryPlanScriptActionDetails.

Exceptions

actionName, failoverTypes, failoverDirections or customDetails is null.

Applies to