分享方式:


DiscoveryWebProxyClient 類別

Implements IDiscoveryService and provides an authenticated connection to the Discovery.svc/web endpoint. This /web endpoint is also used by web resources.

命名空間: Microsoft.Xrm.Sdk.WebServiceClient
組件: Microsoft.Xrm.Sdk (在 Microsoft.Xrm.Sdk.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Security", "CA9881:ClassesShouldBeSealed", Justification:="This class need to be instantiated by clients and be able to derive from it.")> _
Public Class DiscoveryWebProxyClient
    Inherits WebProxyClient(Of IDiscoveryService)
    Implements IDiscoveryService
[SuppressMessageAttribute("Microsoft.Security", "CA9881:ClassesShouldBeSealed", Justification="This class need to be instantiated by clients and be able to derive from it.")] 
public class DiscoveryWebProxyClient : WebProxyClient<IDiscoveryService>, IDiscoveryService

備註

You must set the HeaderToken and SdkClientVersion property values before using the proxy object to make service calls.

To call the Discovery web service using the IDiscoveryService interface, cast the proxy instance to an IDiscoveryService type.

繼承階層

System.Object
   System.ServiceModel.ClientBase
     Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient
      Microsoft.Xrm.Sdk.WebServiceClient.DiscoveryWebProxyClient

執行緒安全

此類型的任何公用靜態 (Visual Basic 中的 Shared) 成員都具備執行緒安全。任何執行個體成員都不保證具備執行緒安全。

平台

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows 98、Windows 2000、Windows 2000 Server、Windows CE、Windows Server 2008、Windows 98 Second Edition、Pocket PC、智慧型手機、Windows Server 2003、Windows XP Professional、Windows Server 2008、Windows Server 2012、Windows 7、Windows 8、Windows 8.1

請參閱

參照

DiscoveryWebProxyClient 成員
Microsoft.Xrm.Sdk.WebServiceClient 命名空間

其他資源

Discover the URL for Your Organization With IDiscoveryService Web Service
Authenticate the user with the web services

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.