Partager via


DiscoveryServiceProxy Class

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Implements IDiscoveryService and provides an authenticated WCF channel to the discovery service endpoint.

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

Syntax

'Declaration
Public Class DiscoveryServiceProxy
    Inherits ServiceProxy(Of IDiscoveryService)
    Implements IDiscoveryService
public class DiscoveryServiceProxy : ServiceProxy<IDiscoveryService>, IDiscoveryService

Remarks

You can make SDK calls using the IDiscoveryService interface by casting the proxy instance to a IDiscoveryService type.

Important

This class is not thread safe. Microsoft Dynamics CRM Online authentication using the Microsoft online services environment identity provider, including Microsoft Office 365, is supported.

Inheritance Hierarchy

System.Object
   Microsoft.Xrm.Sdk.Client.ServiceProxy
    Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

Change History

See Also

Reference

DiscoveryServiceProxy Members
Microsoft.Xrm.Sdk.Client Namespace

Other Resources

Sample: Access the Discovery Service
Helper Code: ServerConnection Class

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