Share via


ITransactionVoterFactory2

 

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.

Note

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

When to Implement

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

When to Use

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.

Methods in Vtable Order

ITransactionVoterFactory2 method Description
Create Creates the transaction voter object and exchanges sinks between the transaction voter and the DTC proxy.

Remarks

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

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