DiscoveryWebProxyClient Constructor (Uri, TimeSpan)

 

Applies To: Dynamics CRM 2015

Initializes a new instance of the DiscoveryWebProxyClient 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:
DiscoveryWebProxyClient(
    Uri^ serviceUrl,
    TimeSpan timeout
)
new : 
        serviceUrl:Uri *
        timeout:TimeSpan -> DiscoveryWebProxyClient
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

© 2016 Microsoft. All rights reserved. Copyright