DiscoveryRequest Class

 

Applies To: Dynamics CRM 2015

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

[DataContractAttribute(Name = "DiscoveryRequest", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts/Discovery")]
[KnownTypeAttribute(typeof(RetrieveOrganizationsRequest))]
[KnownTypeAttribute(typeof(RetrieveUserIdByExternalIdRequest))]
[KnownTypeAttribute(typeof(RetrieveOrganizationRequest))]
public abstract class DiscoveryRequest : IExtensibleDataObject
[DataContractAttribute(Name = "DiscoveryRequest", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts/Discovery")]
[KnownTypeAttribute((RetrieveOrganizationsRequest^::typeid))]
[KnownTypeAttribute((RetrieveUserIdByExternalIdRequest^::typeid))]
[KnownTypeAttribute((RetrieveOrganizationRequest^::typeid))]
public ref class DiscoveryRequest abstract : IExtensibleDataObject
[<AbstractClass>]
[<DataContractAttribute(Name = "DiscoveryRequest", Namespace = "https://schemas.microsoft.com/xrm/2011/Contracts/Discovery")>]
[<KnownTypeAttribute(typeof(RetrieveOrganizationsRequest))>]
[<KnownTypeAttribute(typeof(RetrieveUserIdByExternalIdRequest))>]
[<KnownTypeAttribute(typeof(RetrieveOrganizationRequest))>]
type DiscoveryRequest = 
    class
        interface IExtensibleDataObject
    end
<DataContractAttribute(Name := "DiscoveryRequest", Namespace := "https://schemas.microsoft.com/xrm/2011/Contracts/Discovery")>
<KnownTypeAttribute(GetType(RetrieveOrganizationsRequest))>
<KnownTypeAttribute(GetType(RetrieveUserIdByExternalIdRequest))>
<KnownTypeAttribute(GetType(RetrieveOrganizationRequest))>
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

© 2016 Microsoft. All rights reserved. Copyright