Freigeben über


ServiceProxy.SwitchToAlternateEndpoint Methode

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

'Declaration
Public Function SwitchToAlternateEndpoint As Boolean
public bool SwitchToAlternateEndpoint ()

Rückgabewert

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

Anmerkungen

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.

Thread-Sicherheit

Alle öffentlichen statischen Mitglieder (Shared in Visual Basic) dieses Typs sind thread-sicher. Bei Instanzmitgliedern kann keine Garantie für die Thread-Sicherheit übernommen werden.

Plattformen

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

Siehe auch

Referenz

ServiceProxy Generische Klasse
ServiceProxy Mitglieder
Microsoft.Xrm.Sdk.Client Namespace
ServiceEndpointMetadata.ServiceUrls Eigenschaft

Weitere Ressourcen

Disaster Recovery in Microsoft Dynamics CRM Online

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.