RemoteExecutionContext.ParentContext Property
Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online
Gets the remote execution context from the parent operation.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
'Declaration
<DataMemberAttribute> _
Public Property ParentContext As RemoteExecutionContext
[DataMemberAttribute]
public RemoteExecutionContext ParentContext { get; set; }
Property Value
Type: RemoteExecutionContext
The remote execution context from the parent operation.
Remarks
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 remote execution context of the original assign request.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)
Target Platforms
Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),
See Also
Reference
RemoteExecutionContext Class
RemoteExecutionContext Members
Microsoft.Xrm.Sdk Namespace
Other Resources
Event Execution Pipeline
Pass Data Between Plug-ins
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.