Jaa


ServiceProxy<TService>.SwitchToAlternateEndpoint Method ()

 

Applies To: Dynamics CRM 2015

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:
bool SwitchToAlternateEndpoint()
member SwitchToAlternateEndpoint : unit -> bool
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 CRM Online

Return to top

© 2016 Microsoft. All rights reserved. Copyright