IDiscoveryService.Execute 方法
適用於: CRM 2015 on-prem, CRM Online
Executes a discovery service message in the form of a request, and returns a response.
命名空間: Microsoft.Xrm.Sdk.Discovery
組件: Microsoft.Xrm.Sdk (在 Microsoft.Xrm.Sdk.dll 中)
語法
'宣告
<OperationContractAttribute> _
<FaultContractAttribute(GetType(DiscoveryServiceFault))> _
Function Execute ( _
request As DiscoveryRequest _
) As DiscoveryResponse
[OperationContractAttribute]
[FaultContractAttribute(typeof(DiscoveryServiceFault))]
DiscoveryResponse Execute (
DiscoveryRequest request
)
參數
- request
Type: DiscoveryRequest. A request instance that defines the action to be performed.
傳回值
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.
備註
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.
執行緒安全
此類型的任何公用靜態 (Visual Basic 中的 Shared) 成員都具備執行緒安全。任何執行個體成員都不保證具備執行緒安全。
平台
開發平台
Windows Vista、Windows Server 2003 和
目標平台
Windows Vista、Windows XP
請參閱
參照
IDiscoveryService 介面
IDiscoveryService 成員
Microsoft.Xrm.Sdk.Discovery 命名空間
其他資源
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.