IContextState::SetMyTransactionVote method (comsvcs.h)
Sets the consistent flag.
Syntax
HRESULT SetMyTransactionVote(
[in] TransactionVote txVote
);
Parameters
[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. |
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | comsvcs.h |