Updated: July 19, 2016

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

The interface contains a single method that is used to create a new transaction voter object. The transaction voter object implements the ITransactionVoterBallotAsync2 interface. This interface is exported as a sink to the transaction voter for vetoing distributed transaction commitment.

System_CAPS_ICON_note.jpg Note

The ITransactionVoterFactory interface is no longer supported, and applications must instead use the ITransactionVoterFactory2 interface.

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

Use this interface to create a new transaction voter object. For non-durable participants in a transaction it is more advantageous to use a transaction voter object to control the outcome of a transaction as opposed to using an enlistment object.

ITransactionVoterFactory2 methodDescription
CreateCreates the transaction voter object and exchanges sinks between the transaction voter and the DTC proxy.

Call QueryInterface on any interface on the DTC proxy core object with a riid of IID_ITransactionVoterFactory2.

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 txdtc.h