IEndpointSwitch.CanSwitch Method (Uri)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Checks if the specified endpoint URI is different from the organization’s alternate endpoint URI.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

bool CanSwitch(
    Uri currentUri
)
Function CanSwitch (
    currentUri As Uri
) As Boolean

Parameters

  • currentUri
    Type: System.Uri

    Type: URI. Specifies an endpoint URI.

Return Value

Type: System.Boolean

Type: Boolean
true if the two URIs are different and an endpoint switch can be attempted, otherwise false.

See Also

AlternateEndpoint
AlternateEndpoint
IEndpointSwitch Interface
Microsoft.Xrm.Sdk.Client Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright