Compartilhar via


CachedOrganizationService.Execute<T> Method (OrganizationRequest, Func<OrganizationResponse, T>, String)

 

Applies To: Dynamics CRM 2013

Executes a message in the form of a request, and returns a response. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Services
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public T Execute<T>(
    OrganizationRequest request,
    Func<OrganizationResponse, T> selector,
    string selectorCacheKey
)
public:
generic<typename T>
T Execute(
    OrganizationRequest^ request,
    Func<OrganizationResponse^, T>^ selector,
    String^ selectorCacheKey
)
member Execute<'T> : 
        request:OrganizationRequest *
        selector:Func<OrganizationResponse, 'T> *
        selectorCacheKey:string -> 'T
Public Function Execute(Of T) (
    request As OrganizationRequest,
    selector As Func(Of OrganizationResponse, T),
    selectorCacheKey As String
) As T

Parameters

Return Value

Type: T

Type: OrganizationResponse. You must cast the return value of this method to the specific instance of the response that corresponds to the Request parameter.

Type Parameters

  • T

Remarks

This is a wrapper for the IOrganizationService. Execute Method.

See Also

Execute Overload
CachedOrganizationService Class
Microsoft.Xrm.Client.Services Namespace

Return to top