Dela via


IDiscoveryService.Execute Method (DiscoveryRequest)

 

Applies To: Dynamics CRM 2015

Executes a discovery service message in the form of a request, and returns a response.

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

Syntax

[OperationContractAttribute]
[FaultContractAttribute(typeof(DiscoveryServiceFault))]
DiscoveryResponse Execute(
    DiscoveryRequest request
)
[OperationContractAttribute]
[FaultContractAttribute((DiscoveryServiceFault^::typeid))]
DiscoveryResponse^ Execute(
    DiscoveryRequest^ request
)
[<OperationContractAttribute>]
[<FaultContractAttribute(typeof(DiscoveryServiceFault))>]
abstract Execute : 
        request:DiscoveryRequest -> DiscoveryResponse
<OperationContractAttribute>
<FaultContractAttribute(GetType(DiscoveryServiceFault))>
Function Execute (
    request As DiscoveryRequest
) As DiscoveryResponse

Parameters

Return Value

Type: Microsoft.Xrm.Sdk.Discovery.DiscoveryResponse

Type: DiscoveryResponse.
The response from processing the request. You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter.

Remarks

Privileges and Access Rights

To execute a message, the caller must have a system user account on the Microsoft Dynamics CRM server.

Method Availability

This method works only when connected to the server.

See Also

IDiscoveryService Interface
Microsoft.Xrm.Sdk.Discovery Namespace
Discovery service messages (request and response classes)
Sample: Access the Discovery service
Handle exceptions in your code

Return to top

© 2016 Microsoft. All rights reserved. Copyright