共用方式為


OrganizationServiceProxy.Execute(OrganizationRequest) Method

Definition

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

public:
 virtual Microsoft::Xrm::Sdk::OrganizationResponse ^ Execute(Microsoft::Xrm::Sdk::OrganizationRequest ^ request);
public Microsoft.Xrm.Sdk.OrganizationResponse Execute (Microsoft.Xrm.Sdk.OrganizationRequest request);
abstract member Execute : Microsoft.Xrm.Sdk.OrganizationRequest -> Microsoft.Xrm.Sdk.OrganizationResponse
override this.Execute : Microsoft.Xrm.Sdk.OrganizationRequest -> Microsoft.Xrm.Sdk.OrganizationResponse
Public Function Execute (request As OrganizationRequest) As OrganizationResponse

Parameters

request
OrganizationRequest

An instance of a request class that defines the action to be performed.

Returns

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

Implements

Remarks

The core implementation of the Execute method. For more information, see IOrganizationService.Execute(OrganizationRequest).

For more information about the exceptions that can be thrown when calling OrganizationServiceProxy methods, see Handle exceptions in your code.

Applies to