ITransactionContext::Abort method (comsvcs.h)
Aborts the work of all COM objects participating in the current transaction. The transaction ends on return from this method.
Syntax
HRESULT Abort();
Return value
This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following values.
Return code | Description |
---|---|
|
The transaction was aborted. |
|
The TransactionContext object is not running under a COM+ process, possibly indicating a corrupted registry entry for the TransactionContext component. |
Remarks
Calling Abort ends the transaction on return of the method and automatically deactivates all participating objects. Each resource manager enlisted in the transaction rolls back the operations performed on behalf of those objects.
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 |