Méthode IDiscoveryService.Execute
S'applique à: CRM 2015 on-prem, CRM Online
Executes a discovery service message in the form of a request, and returns a response.
Espace de noms: Microsoft.Xrm.Sdk.Discovery
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)
Syntaxe
'Déclaration
<OperationContractAttribute> _
<FaultContractAttribute(GetType(DiscoveryServiceFault))> _
Function Execute ( _
request As DiscoveryRequest _
) As DiscoveryResponse
[OperationContractAttribute]
[FaultContractAttribute(typeof(DiscoveryServiceFault))]
DiscoveryResponse Execute (
DiscoveryRequest request
)
Paramètres
- request
Type: DiscoveryRequest. A request instance that defines the action to be performed.
Valeur renvoyée
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.
Remarques
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.
Cohérence de thread
Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.
Plateformes
Plateformes de développement
Windows Vista, Windows Server 2003 et
Plateformes cibles
Windows Vista,Windows XP
Voir aussi
Référence
Interface de IDiscoveryService
Membres IDiscoveryService
Espace de noms Microsoft.Xrm.Sdk.Discovery
Autres ressources
Discovery Service Messages (Request and Response Classes)
Sample: Access the Discovery Service
Handle Exceptions in Your Code
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.