SolFSStorage.Close method


Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStorage     See also    


Closes storage object.


    procedure Close(Force : boolean);

[Plain C]
    long _stdcall StorageClose(unsigned long Storage, bool Force);

[C++ (DLL/Lib)]
    void Close(bool Force);

[C++ (VCL)]
    void Close(bool Force);

[C++ (.NET)]
    void Close(bool Force);

    void Close(bool Force);

    Sub Close(ByVal Force As Boolean)

    void close();


  • Force - [Operating Systerm Edition] Specifies whether the opened file and folder handles must be forcefully closed.
    [Application edition] Parameter is ignored
  • [Plain C] Storage - handle to the storage returned by Create or Open function.

[Plain C]  Return values

0 if the function succeeded or one of Error codes if the function failed.


Use Close to close SolFSStorage.
[.NET] The storage is flushed and closed. SolFSStorage object becomes invalid after Close is called and any attempt to call one of the methods leads to ObjectDisposedException error. It is necessary to close the storage once it is not used anymore. When callback mode is used, the application can't be shutdown unless the storage is closed.

See also

Create     FlushBuffers     [DLL] Open