Compartir a través de


Método IDiscoveryService.Execute

Se aplica a: CRM 2015 on-prem, CRM Online

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

Espacio de nombres: Microsoft.Xrm.Sdk.Discovery
Ensamblado: Microsoft.Xrm.Sdk (en Microsoft.Xrm.Sdk.dll)

Sintaxis

'Declaración
<OperationContractAttribute> _
<FaultContractAttribute(GetType(DiscoveryServiceFault))> _
Function Execute ( _
    request As DiscoveryRequest _
) As DiscoveryResponse
[OperationContractAttribute] 
[FaultContractAttribute(typeof(DiscoveryServiceFault))] 
DiscoveryResponse Execute (
    DiscoveryRequest request
)

Parámetros

  • request
    Type: DiscoveryRequest. A request instance that defines the action to be performed.

Valor de retorno

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.

Comentarios

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.

Seguridad de hilo

Los miembros estáticos públicos (Shared en Visual Basic) de este tipo son seguros para el hilo. No se garantiza que los miembros de instancia sean seguros para el hilo.

Plataformas

Plataformas de desarrollo

Windows Vista, Windows Server 2003 y

Plataformas de destino

Windows Vista,Windows XP

Vea también

Referencia

Interfaz de IDiscoveryService
Miembros de IDiscoveryService
Espacio de nombres de Microsoft.Xrm.Sdk.Discovery

Otros recursos

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.