Share via


Voter Object

 

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 voter object represents an application's vote for committing or aborting a distributed transaction.

Origin: A transaction voter creates a voter object by calling the ITransactionVoterFactory::Create method.
Occurrences: One instance of the voter object is present for each call to the ITransactionVoterFactory::Create method. A transaction voter calls this method on the transaction object for any transaction for which it needs notification of outcome events or would like to veto.
Duration: The lifetime of a transaction voter object matches that of the transaction with which it is employed.
Interfaces: IUnknown

 ITransactionVoterBallotAsync2