OrganizationServiceContext.OnExecute Method

Definition

Overloads

OnExecute(OrganizationRequest, OrganizationResponse)

Virtual (Overridable) method called after Execute(OrganizationRequest) is called and before a response is returned.

OnExecute(OrganizationRequest, Exception)

Virtual (Overridable) method called after Execute(OrganizationRequest) is called and before an exception is re-thrown.

OnExecute(OrganizationRequest, OrganizationResponse)

Virtual (Overridable) method called after Execute(OrganizationRequest) is called and before a response is returned.

protected:
 virtual void OnExecute(Microsoft::Xrm::Sdk::OrganizationRequest ^ request, Microsoft::Xrm::Sdk::OrganizationResponse ^ response);
protected virtual void OnExecute (Microsoft.Xrm.Sdk.OrganizationRequest request, Microsoft.Xrm.Sdk.OrganizationResponse response);
abstract member OnExecute : Microsoft.Xrm.Sdk.OrganizationRequest * Microsoft.Xrm.Sdk.OrganizationResponse -> unit
override this.OnExecute : Microsoft.Xrm.Sdk.OrganizationRequest * Microsoft.Xrm.Sdk.OrganizationResponse -> unit
Protected Overridable Sub OnExecute (request As OrganizationRequest, response As OrganizationResponse)

Parameters

request
OrganizationRequest

The request being processed.

response
OrganizationResponse

The response that is to be returned from processing the request.

Remarks

Execute(OrganizationRequest) is called by Execute(OrganizationRequest).

Applies to

OnExecute(OrganizationRequest, Exception)

Virtual (Overridable) method called after Execute(OrganizationRequest) is called and before an exception is re-thrown.

protected:
 virtual void OnExecute(Microsoft::Xrm::Sdk::OrganizationRequest ^ request, Exception ^ exception);
protected virtual void OnExecute (Microsoft.Xrm.Sdk.OrganizationRequest request, Exception exception);
abstract member OnExecute : Microsoft.Xrm.Sdk.OrganizationRequest * Exception -> unit
override this.OnExecute : Microsoft.Xrm.Sdk.OrganizationRequest * Exception -> unit
Protected Overridable Sub OnExecute (request As OrganizationRequest, exception As Exception)

Parameters

request
OrganizationRequest

The request being processed.

exception
Exception

The exception thrown from processing the request.

Remarks

Execute(OrganizationRequest) is called by Execute(OrganizationRequest).

Applies to