다음을 통해 공유


IOrganizationService.Execute 메서드

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

네임스페이스: Microsoft.Xrm.Sdk
어셈블리: Microsoft.Xrm.Sdk(Microsoft.Xrm.Sdk.dll에 있음)

구문

‘선언
<FaultContractAttribute(GetType(OrganizationServiceFault))> _
<OperationContractAttribute> _
Function Execute ( _
    request As OrganizationRequest _
) As OrganizationResponse
[FaultContractAttribute(typeof(OrganizationServiceFault))] 
[OperationContractAttribute] 
OrganizationResponse Execute (
    OrganizationRequest request
)

매개 변수

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

반환 값

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

예제

The following example shows how to use the Execute method to assign a queue to a team (early bound). For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface. You can find the complete sample in the sample code package in the folder SampleCode\CS\BusinessDataModel\BusinessManagement\AssignRecordToTeam.cs.

The following example shows how to use the Execute method to assign a queue to a team (late bound). For this sample to work correctly, you must be connected to the server to get an IOrganizationService interface. You can find the complete sample in the sample code package in the folder SampleCode\CS\GeneralProgramming\LateBound\AssignQueueToTeamDE.cs.

설명

Privileges and Access Rights

To execute the message, the caller must have the necessary privileges to the entity type that is specified in the request class. The caller must also have access rights on the specified records in the request class. For more information, see the Request class for the action you want to execute. For example, see AssignRequest.

Notes for Callers

에 대한 자세한 내용은 the exceptions that can be thrown when this method is called, see Handle Exceptions in Your Code.

Method Availability

This method works regardless whether the caller is connected to the server or offline.

스레드 보안

이 형식의 공용 정적(Visual Basic에서는 Shared) 구성원은 스레드로부터 안전합니다. 인스턴스 구성원은 스레드로부터 안전하지 않을 수 있습니다.

플랫폼

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

참고 항목

참조

IOrganizationService 인터페이스
IOrganizationService 구성원
Microsoft.Xrm.Sdk 네임스페이스

기타 리소스

Use Messages (Request and Response Classes) with the Execute Method
The Security Model of Dynamics CRM
Privileges by Message
Privileges by Entity
Handle Exceptions in Your Code
Troubleshooting and Error Handling

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.