IPluginExecutionContext.Stage Property

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Gets the stage in the execution pipeline that a synchronous plug-in is registered for.

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

Syntax

int Stage { get; }
ReadOnly Property Stage As Integer

Property Value

Type: System.Int32

Type: Int32.
Valid values are 10 (pre-validation), 20 (pre-operation), 40 (post-operation), and 50 (post-operation, deprecated).

Remarks

A stage identifies when a registered synchronous plug-in is to execute during the processing of a message request. Plug-ins can be further ordered within a stage using the SdkMessageProcessingStep.Rank attribute.

An enumeration named SdkMessageProcessingStepStage that defines the supported range of values for this property is available by including the file SampleCode\CS\HelperCode\OptionSets.cs or SampleCode\VB\HelperCode\OptionSets.vb in your project.

See Also

IPluginExecutionContext Interface
Microsoft.Xrm.Sdk Namespace
Plug-in registration entities
Event execution pipeline

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright