SolFSStorage.Close method
Filter:
Pascal DLL C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Closes storage object.
Declaration
[Pascal]
procedure Close(Force : boolean);
[DLL]
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);
[C#]
void Close(bool Force);
[VB.NET]
Sub Close(ByVal Force As Boolean)
Parameters
- Force - Specifies whether the opened file and folder handles must be forcefully closed
- [DLL] Storage - handle to the storage returned by Create or Open function.
[DLL] Return values
0 if the function succeeded or one of Error codes if the function failed.
Description
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.
