IStream::Revert

Discards all changes that have been made to a transacted stream since the last IStream::Commit call. For streams open in direct mode and streams using the OLE implementation of IStream::Revert, this method has no effect.

HRESULT Revert(void);

Return Values

S_OK

The stream was successfully reverted to its previous version.

STG_E_REVERTED

The object has been invalidated by a revert operation above it in the transaction tree.

Comments

This method discards changes made to a transacted stream since the last commit operation.

The OLE-provided implementation does not support transacted streams, and this method has no effect in that implementation.

See Also

IStream::Commit

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples