IContextState::SetMyTransactionVote method (comsvcs.h)

Sets the consistent flag.


HRESULT SetMyTransactionVote(
  [in] TransactionVote txVote


[in] txVote

The consistent flag. For a list of values, see the TransactionVote enumeration. Set this parameter to TxCommit if the consistent flag is true;set it to TxAbort if the consistent flag is false.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following values.

Return code Description
The method completed successfully.

Just-in-Time Activation is not available to this context.


COM+ inspects this flag only when deactivating the object, and the flag can be set multiple times within a method call.

The default value of the consistent flag is true.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

Consistent and Done Flags