Partilhar via


RecoveryPlanAction Construtor

Definição

Inicializa uma nova instância de 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)

Parâmetros

actionName
String

O nome da ação.

failoverTypes
IEnumerable<ReplicationProtectedItemOperation>

A lista de tipos de failover.

failoverDirections
IEnumerable<PossibleOperationsDirection>

A lista de trajetos de failover.

customDetails
RecoveryPlanActionDetails

Os detalhes personalizados. RecoveryPlanActionDetails Observe que é a classe base. De acordo com o cenário, uma classe derivada da classe base pode precisar ser atribuída aqui ou essa propriedade precisa ser convertida em uma das classes derivadas possíveis. As classes derivadas disponíveis incluem RecoveryPlanAutomationRunbookActionDetails, RecoveryPlanManualActionDetails e RecoveryPlanScriptActionDetails.

Exceções

actionName, failoverTypes, failoverDirections ou customDetails é nulo.

Aplica-se a