CSC_TransactionConfig enumeration (comsvcs.h)

Indicates how transactions are configured for CServiceConfig.

Syntax

typedef enum tagCSC_TransactionConfig {
  CSC_NoTransaction = 0,
  CSC_IfContainerIsTransactional,
  CSC_CreateTransactionIfNecessary,
  CSC_NewTransaction
} CSC_TransactionConfig;

Constants

 
CSC_NoTransaction
Value: 0
Transactions are never used within the enclosed context. This is the default transaction setting for CServiceConfig when CSC_InheritanceConfig is set to CSC_Ignore.
CSC_IfContainerIsTransactional
Transactions are used only if the enclosed context is using a transaction; a new transaction is never created. This is the default transaction setting for CServiceConfig when CSC_InheritanceConfig is set to CSC_Inherit.
CSC_CreateTransactionIfNecessary
Transactions are always used. The existing transaction is used, or if the enclosed context does not already use transactions, a new transaction is created.
CSC_NewTransaction
A new transaction is always created.

Remarks

This enumeration is used to configure transactions through CServiceConfig for either the work submitted through the activity created by CoCreateActivity or the work that is enclosed between calls to CoEnterServiceDomain and CoLeaveServiceDomain.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header comsvcs.h

See also

COM+ Transactions

CServiceConfig

CoCreateActivity

CoEnterServiceDomain

IServiceTransactionConfigBase::ConfigureTransaction