ServiceProxy<TService>.SwitchToAlternateEndpoint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Switches the organization’s current endpoint to an alternate endpoint, if one is available.
public:
bool SwitchToAlternateEndpoint();
public bool SwitchToAlternateEndpoint ();
member this.SwitchToAlternateEndpoint : unit -> bool
Public Function SwitchToAlternateEndpoint () As Boolean
Returns
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.