IPluginExecutionContextExtensions.IsWithinMainTransaction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
[System::Runtime::CompilerServices::Extension]
static bool IsWithinMainTransaction(Microsoft::Xrm::Sdk::IPluginExecutionContext ^ context);
public static bool IsWithinMainTransaction (this Microsoft.Xrm.Sdk.IPluginExecutionContext context);
static member IsWithinMainTransaction : Microsoft.Xrm.Sdk.IPluginExecutionContext -> bool
<Extension()>
Public Function IsWithinMainTransaction (context As IPluginExecutionContext) As Boolean
Parameters
- context
- IPluginExecutionContext
Returns
true
if the plug-in executes within the main database transaction (stages 20-40) of the Execution Pipeline; otherwise false.