Udostępnij za pośrednictwem


IPluginExecutionContext.ParentContext Property

 

Applies To: Dynamics CRM 2015

Gets the execution context from the parent pipeline operation.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

IPluginExecutionContext ParentContext { get; }
property IPluginExecutionContext^ ParentContext {
    IPluginExecutionContext^ get();
}
abstract ParentContext : IPluginExecutionContext with get
ReadOnly Property ParentContext As IPluginExecutionContext

Property Value

Type: Microsoft.Xrm.Sdk.IPluginExecutionContext

Type: IPluginExecutionContext
The execution context from the parent pipeline 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 execution context of the original assign request.

See Also

IPluginExecutionContext Interface
Microsoft.Xrm.Sdk Namespace
Event execution pipeline
Pass data between plug-ins

Return to top

© 2016 Microsoft. All rights reserved. Copyright