Jaa


IDiscoveryService.Execute(DiscoveryRequest) Method

Definition

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

public:
 Microsoft::Xrm::Sdk::Discovery::DiscoveryResponse ^ Execute(Microsoft::Xrm::Sdk::Discovery::DiscoveryRequest ^ request);
[System.ServiceModel.FaultContract(typeof(Microsoft.Xrm.Sdk.DiscoveryServiceFault))]
[System.ServiceModel.OperationContract]
public Microsoft.Xrm.Sdk.Discovery.DiscoveryResponse Execute (Microsoft.Xrm.Sdk.Discovery.DiscoveryRequest request);
[<System.ServiceModel.FaultContract(typeof(Microsoft.Xrm.Sdk.DiscoveryServiceFault))>]
[<System.ServiceModel.OperationContract>]
abstract member Execute : Microsoft.Xrm.Sdk.Discovery.DiscoveryRequest -> Microsoft.Xrm.Sdk.Discovery.DiscoveryResponse
Public Function Execute (request As DiscoveryRequest) As DiscoveryResponse

Parameters

request
DiscoveryRequest

A request instance that defines the action to be performed.

Returns

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.

Attributes

Remarks

Privileges and Access Rights

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

Method Availability

This method works only when connected to the server.

Applies to