Compartilhar via


Método IDiscoveryService.Execute

Aplica-se a: CRM 2015 on-prem, CRM Online

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

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

Sintaxe

'Declaração
<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.

Comentários

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.

Segurança do Thread

Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows Server 2003 e

Plataformas de destino

Windows Vista,Windows XP

Consulte também

Referência

Interface IDiscoveryService
Membros de IDiscoveryService
Namespace Microsoft.Xrm.Sdk.Discovery

Outros 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.