DiscoveryWebProxyClient Constructor (Uri, TimeSpan)

 

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

Initializes a new instance of theDiscoveryWebProxyClient class using a Discovery service URL and a time span.

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

Syntax

public DiscoveryWebProxyClient(
    Uri serviceUrl,
    TimeSpan timeout
)
Public Sub New (
    serviceUrl As Uri,
    timeout As TimeSpan
)

Parameters

  • serviceUrl
    Type: System.Uri

    The URL of the Discovery web service.

  • timeout
    Type: System.TimeSpan

    The maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding.

Remarks

The URL must contain the SDK client version. For example:

https://disco.crm.dynamics.com/XRMServices/2011/Discovery.svc/web?SdkClientVersion=7.0.0.0

See Also

SdkClientVersion
DiscoveryWebProxyClient Overload
DiscoveryWebProxyClient Class
Microsoft.Xrm.Sdk.WebServiceClient Namespace
Discover the OAuth endpoint URL

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright