MTSTransactionMode Property (VB6 only)

Description

Only available when a class is part of an ActiveX DLL project, you should set this property whenever the class is to be registered as a Microsoft Transaction Server (MTS) component. MTS uses this property to determine the level of support a particular component has for transactions. This property is available only at design time.

When MTS components created using VB5 are added to an MTS package, the administrator of the MTS package must manually set the Transaction Support property for the component to operate correctly. VB6 has included the MTSTransactionMode property to ease the burden on MTS administrators either forgetting to set the property or setting the incorrect value. Therefore, developers of MTS components now have more direct control over the way in which their components are registered within MTS.

Values

NotAnMTSObject (Default)

Use this value if the component isn't to be used in Microsoft Transaction Server.

NoTransactions

Use this value if the component is to be a nontransactional part of an MTS package. When the component is installed in MTS, the Transaction property is set to "Does not support Transactions." This value tells MTS that the component shouldn't execute within the context of a transaction regardless of the transactional state of the client.

RequiresTransactions

When the component is installed in MTS, the Transaction property is set to "Requires a Transaction." This means that if the client isn't executing ...

Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.