Partilhar via


Método ServiceProxy.SwitchToAlternateEndpoint

Aplica-se a: CRM 2015 on-prem, 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 (em Microsoft.Xrm.Sdk.dll)

Sintaxe

'Declaração
Public Function SwitchToAlternateEndpoint As Boolean
public bool SwitchToAlternateEndpoint ()

Valor de Retorno

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

Comentários

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.

Segurança do Thread

Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows Server 2003 e

Plataformas de destino

Windows Vista,Windows XP

Consulte também

Referência

Classe genérica ServiceProxy
Membros de ServiceProxy
Namespace Microsoft.Xrm.Sdk.Client
Propriedade ServiceEndpointMetadata.ServiceUrls

Outros recursos

Disaster Recovery in Microsoft Dynamics CRM Online

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