应用到: CRM 2015 on-prem, CRM Online
Gets the execution context from the parent pipeline operation.
命名空间: Microsoft.Xrm.Sdk
程序集: Microsoft.Xrm.Sdk (在 Microsoft.Xrm.Sdk.dll 中)
语法
声明
ReadOnly Property ParentContext As IPluginExecutionContext
IPluginExecutionContext ParentContext { get; }
属性值
Type: IPluginExecutionContext
The execution context from the parent pipeline operation.
备注
This property may be populated for a plug-in registered in stage 20 or 40 when a Create, Update, Delete, or RetrieveExchangeRate request is processed by the execution pipeline.
Certain message requests require the platform to internally generate another message request, and hence another execution pipeline, to complete processing of the original request. For example, pipeline execution of the AssignRequest results in the internal generation of an UpdateRequest. Any plug-in registered in stage 20 or 40 for an update request will have the ParentContext property set to the execution context of the original assign request.
线程安全性
此类型的所有公共静态(Visual Basic 中的 Shared)成员都是线程安全成员。不保证任何实例成员是线程安全成员。
平台
开发平台
Windows Vista、Windows Server 2003 和
目标平台
Windows Vista,Windows XP
另请参阅
参考
IPluginExecutionContext 接口
IPluginExecutionContext 成员
Microsoft.Xrm.Sdk 命名空间
其他资源
Event Execution Pipeline
Pass Data Between Plug-ins
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.