DiscoveryRequest Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, 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)

Inheritance Hierarchy

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

Syntax

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

Constructors

Name Description
System_CAPS_protmethod DiscoveryRequest()

Initializes a new instance of the DiscoveryRequest class.

Properties

Name Description
System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data. Optional.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

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

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.

See Also

DiscoveryResponse
Microsoft.Xrm.Sdk.Discovery Namespace
Discovery service messages (request and response classes)

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright