Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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_NoTransactionValue: 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_IfContainerIsTransactionalTransactions 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_CreateTransactionIfNecessaryTransactions are always used. The existing transaction is used, or if the enclosed context does not already use transactions, a new transaction is created. |
CSC_NewTransactionA 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 |