共用方式為


ArmRecoveryServicesSiteRecoveryModelFactory.RecoveryPlanUnplannedFailoverProperties Method

Definition

Initializes a new instance of RecoveryPlanUnplannedFailoverProperties.

public static Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryPlanUnplannedFailoverProperties RecoveryPlanUnplannedFailoverProperties (Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.PossibleOperationsDirection failoverDirection = default, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SourceSiteOperation sourceSiteOperation = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryPlanProviderSpecificFailoverContent> providerSpecificDetails = default);
static member RecoveryPlanUnplannedFailoverProperties : Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.PossibleOperationsDirection * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.SourceSiteOperation * seq<Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryPlanProviderSpecificFailoverContent> -> Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.RecoveryPlanUnplannedFailoverProperties
Public Shared Function RecoveryPlanUnplannedFailoverProperties (Optional failoverDirection As PossibleOperationsDirection = Nothing, Optional sourceSiteOperation As SourceSiteOperation = Nothing, Optional providerSpecificDetails As IEnumerable(Of RecoveryPlanProviderSpecificFailoverContent) = Nothing) As RecoveryPlanUnplannedFailoverProperties

Parameters

failoverDirection
PossibleOperationsDirection

The failover direction.

sourceSiteOperation
SourceSiteOperation

A value indicating whether source site operations are required.

providerSpecificDetails
IEnumerable<RecoveryPlanProviderSpecificFailoverContent>

The provider specific properties. Please note RecoveryPlanProviderSpecificFailoverContent 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 RecoveryPlanA2AFailoverContent, RecoveryPlanHyperVReplicaAzureFailoverContent, RecoveryPlanHyperVReplicaAzureFailbackContent, RecoveryPlanInMageFailoverContent, RecoveryPlanInMageAzureV2FailoverContent, RecoveryPlanInMageRcmFailoverContent and RecoveryPlanInMageRcmFailbackFailoverContent.

Returns

A new RecoveryPlanUnplannedFailoverProperties instance for mocking.

Applies to