This documentation is archived and is not being maintained.

CompensatorOptions Enumeration

Specifies flags that control which phases of transaction completion should be received by the Compensating Resource Manager (CRM) Compensator, and whether recovery should fail if questionable transactions remain after recovery has been attempted.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.EnterpriseServices.CompensatingResourceManager
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public enum class CompensatorOptions

Member nameDescription
PreparePhaseRepresents the prepare phase.
CommitPhaseRepresents the commit phase.
AbortPhaseRepresents the abort phase.
AllPhasesRepresents all phases.
FailIfInDoubtsRemainFails if in-doubt transactions remain after recovery has been attempted.

The following code example demonstrates the use of this enumeration.

// Create a new clerk using the AccountCompensator class.
Clerk^ clerk = gcnew Clerk(AccountCompensator::typeid,
    "An account transaction compensator", CompensatorOptions::AllPhases);

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0