DiscoveryRequest Class

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

Contains the data that is needed to execute a request and the base class for all discovery service requests.

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

Syntax

'Declaration
<KnownTypeAttribute(GetType(RetrieveOrganizationRequest))> _
<KnownTypeAttribute(GetType(RetrieveOrganizationsRequest))> _
<KnownTypeAttribute(GetType(RetrieveUserIdByExternalIdRequest))> _
<DataContractAttribute(Name:="DiscoveryRequest", Namespace:="https://schemas.microsoft.com/xrm/2011/Contracts/Discovery")> _
Public MustInherit Class DiscoveryRequest
    Implements IExtensibleDataObject
[KnownTypeAttribute(typeof(RetrieveOrganizationRequest))] 
[KnownTypeAttribute(typeof(RetrieveOrganizationsRequest))] 
[KnownTypeAttribute(typeof(RetrieveUserIdByExternalIdRequest))] 
[DataContractAttribute(Name="DiscoveryRequest", Namespace="https://schemas.microsoft.com/xrm/2011/Contracts/Discovery")] 
public abstract class DiscoveryRequest : IExtensibleDataObject

Remarks

This is the base class for all discovery Web service requests. Pass an instance of a request class to the Execute method.

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.Discovery.DiscoveryRequest
     Microsoft.Xrm.Sdk.Discovery.RetrieveOrganizationRequest
     Microsoft.Xrm.Sdk.Discovery.RetrieveOrganizationsRequest
     Microsoft.Xrm.Sdk.Discovery.RetrieveUserIdByExternalIdRequest

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),

See Also

Reference

DiscoveryRequest Members
Microsoft.Xrm.Sdk.Discovery Namespace
DiscoveryResponse

Other Resources

Discovery Service Messages (Request and Response Classes)

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