Méthode ServiceProxy.SwitchToAlternateEndpoint
S'applique à: CRM 2015 on-prem, CRM Online
Switches the organization’s current endpoint to an alternate endpoint, if one is available.
Espace de noms: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)
Syntaxe
'Déclaration
Public Function SwitchToAlternateEndpoint As Boolean
public bool SwitchToAlternateEndpoint ()
Valeur renvoyée
Type: Booléen
true if the switch was successful; otherwise, false.
Remarques
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.
Cohérence de thread
Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.
Plateformes
Plateformes de développement
Windows Vista, Windows Server 2003 et
Plateformes cibles
Windows Vista,Windows XP
Voir aussi
Référence
Classe générique ServiceProxy
Membres ServiceProxy
Espace de noms Microsoft.Xrm.Sdk.Client
Propriété ServiceEndpointMetadata.ServiceUrls
Autres ressources
Disaster Recovery in Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.