共用方式為


WebProxyClient<TService> Constructor (Uri, Assembly)

 

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

Initializes a new instance of theWebProxyClient<TService> class using an Organization service URL and an assembly.

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

Syntax

protected WebProxyClient(
    Uri serviceUrl,
    Assembly strongTypeAssembly
)
Protected Sub New (
    serviceUrl As Uri,
    strongTypeAssembly As Assembly
)

Parameters

  • serviceUrl
    Type: System.Uri

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

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

See Also

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

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright