Поделиться через


ITransactionDispenser

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

This interface contains two methods. The BeginTransaction method creates new transaction objects. The GetOptionsObject method creates new transaction options objects.

When to Implement

You do not need to implement this interface. It is implemented by the core TM object of the DTC Proxy.

When to Use

Use this interface to create transactions and transaction options.

Methods in Vtable Order

ITransactionDispenser methods Description
GetOptionsObject Creates a transaction options object.
BeginTransaction Initiates a new transaction and returns a new transaction object.

Remarks

Call the DtcGetTransactionManager function with an riid of IID_ITransactionDispenser when initially connecting to DTC. You can also call QueryInterface on any interface on the DTC proxy core object with an riid of IID_ITransactionDispenser.

Requirements

For an explanation of the requirement values, see Requirements (Component Services).

Platforms: Windows Server 2016, Windows 10, Windows Server 2012 R2, Windows 8.1, Windows Server 2012, Windows 8, Windows Server 2008 R2, Windows 7, Windows Server 2008, Windows Vista

Header: Declared in transact.h

See Also

ITransactionOptions