Discuss this help topic in CBFS Forum

OnDeleteFile event/delegate/callback

Filter:

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

CallbackFileSystem     See also    

Overview

This event is fired when the OS needs to delete the file or directory.

Declaration

[Pascal]
    property OnDeleteFile : TCbFsDeleteFileEvent;
    TCbFsDeleteFileEvent = procedure( Sender : TObject; FileInfo: TCbFsFileInfo ) of object;

[C++ (Lib)]
    void (__stdcall *CbFsDeleteFileEvent)(void* Sender, CbFsFileInfo* FileInfo );

[C++ (VCL)]
    typedef void (__closure *TCbFsDeleteFileEvent)( System::TObject* Sender, TCbFsFileInfo* FileInfo );

[C++ (.NET)]
    public __delegate void CbFsDeleteFileEvent( CallbackFileSystem^ Sender, CbFsFileInfo^ FileInfo );

[C#]
    public void CbFsDeleteFileEvent( CallbackFileSystem Sender, CbFsFileInfo FileInfo );

[VB.NET]
    Sub CbFsDeleteFileEvent( ByVal Sender As CallbackFileSystem, ByVal FileInfo As CbFsFileInfo )

[Java]
    void ICbFsFileEvents.onDeleteFile( CallbackFileSystem sender, CbFsFileInfo fileInfo );

Parameters

  • Sender - reference to the class that called the delegate/event handler
  • FileInfo - contains the information about the file

Description

This event is fired when the OS needs to delete the file or directory. There's no way to cancel deletion of the file or directory from this event. If your application needs to prevent deletion, you need to do this in OnCanFileBeDeleted callback/event handler.

See also

OnCanFileBeDeleted    

Discuss this help topic in CBFS Forum