OnCloseFile event/delegate/callback
Filter:
Pascal C++ (Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
This event is fired when the OS needs to close the file.
Declaration
[Pascal]
property OnCloseFile : TCbFsCloseFileEvent;
TCbFsCloseFileEvent = procedure(
Sender : TObject;
FileInfo: TCbFsFileInfo;
FileHandleContext: Pointer
) of object;
[C++ (Lib)]
void (__stdcall *CbFsCloseFileEvent)(void* Sender,
CbFsFileInfo* FileInfo,
void * FileHandleContext
);
[C++ (VCL)]
typedef void (__closure *TCbFsCloseFileEvent)(
System::TObject* Sender,
TCbFsFileInfo* FileInfo,
void * FileHandleContext
);
[C++ (.NET)]
public __delegate void CbFsCloseFileEvent(
CallbackFileSystem^ Sender,
CbFsFileInfo^ FileInfo,
IntPtr FileHandleContext
);
[C#]
public void CbFsCloseFileEvent(
CallbackFileSystem^ Sender,
CbFsFileInfo FileInfo,
IntPtr FileHandleContext
);
[VB.NET]
Sub CbFsCloseFileEvent(
ByVal Sender As CallbackFileSystem,
ByVal FileInfo As CbFsFileInfo,
ByVal FileHandleContext As IntPtr
)
Parameters
- Sender - reference to the class that called the delegate/event handler
- FileInfo - contains the information about the file
- FileHandleContext - the placeholder for the application-defined data
Description
This event is fired when the OS needs to close the previously created or opened file. Use FileInfo and FileHandleContext to identify the file that needs to be closed.
Read more about contexts.
Error handling
See Error handling topic for detailed information about how to report errors, which occur in the event handlers, back to Callback File System.
