Поделиться через


WebProxyClient<TService> Constructor (Uri, TimeSpan, Assembly)

 

Applies To: Dynamics CRM 2015

Initializes a new instance of the WebProxyClient<TService> class using an Organization service URL, a time span, and an assembly.

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

Syntax

protected WebProxyClient(
    Uri serviceUrl,
    TimeSpan timeout,
    Assembly strongTypeAssembly
)
protected:
WebProxyClient(
    Uri^ serviceUrl,
    TimeSpan timeout,
    Assembly^ strongTypeAssembly
)
new : 
        serviceUrl:Uri *
        timeout:TimeSpan *
        strongTypeAssembly:Assembly -> WebProxyClient
Protected Sub New (
    serviceUrl As Uri,
    timeout As TimeSpan,
    strongTypeAssembly As Assembly
)

Parameters

  • serviceUrl
    Type: System.Uri

    Type: URI. The URL of the Organization web service.

  • timeout
    Type: System.TimeSpan

    Type: 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. The client version is set to the version of the SDK assemblies that the client application was linked to. For example:

https://myorg.crm.dynamics.com/XRMServices/2011/Organization.svc/web?SdkClientVersion=7.0.0.0

The timeout is passed to the SendTimeout, ReceiveTimeout, and OpenTimeout properties on the WCF channel binding.

See Also

SdkClientVersion
WebProxyClient<TService> Overload
WebProxyClient<TService> Class
Microsoft.Xrm.Sdk.WebServiceClient Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright