RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStreamAdapter.Commit Method

Implements the IStream Commit method.

Pascal
function Commit(grfCommitFlags: Longint): HResult; virtual; stdcall;
C++
virtual __fastcall __stdcall HRESULT Commit(Longint grfCommitFlags);

The Commit method defined by IStream commits any changes written to a stream that is participating in a transaction. 

TStreamAdapter does not implement any transaction support, but operates in direct mode. Because of this, Commit returns S_OK to indicate that all changes are already written, but does nothing else. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!