Share via


ServiceProxy<TService>.SwitchToAlternateEndpoint Method ()

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Switches the organization’s current endpoint to an alternate endpoint, if one is available.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

public bool SwitchToAlternateEndpoint()
Public Function SwitchToAlternateEndpoint As Boolean

Return Value

Type: System.Boolean

Type: Boolean
true if the switch was successful; otherwise, false.

Remarks

When an organization is provisioned for disaster recovery failover, that organization has a primary endpoint and an alternate endpoint. If the current endpoint in use for the organization is the primary endpoint, calling SwitchToAlternateEndpoint switches the current endpoint to the alternate endpoint. Conversely, if the current endpoint for the organization is the alternate endpoint, calling SwitchToAlternateEndpoint switches the current endpoint to the primary endpoint.

See Also

ServiceUrls
ServiceProxy<TService> Class
Microsoft.Xrm.Sdk.Client Namespace
Disaster recovery in Microsoft Dynamics 365 (online)

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright