Discuss this help topic in CBFS Forum

OnStorageEjected event/delegate/callback

Filter:

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

CallbackFileSystem     See also    

Overview

This notification event is fired when the storage is removed by the user using Eject command in Explorer.

Declaration

[Pascal]
    property OnStorageEjected : TCbFsStorageEjectedEvent;
    TCbFsStorageEjectedEvent = procedure( Sender : TObject) of object;

[C++ (Lib)]
    void (__stdcall *CbFsStorageEjectedEvent)(void* Sender);

[C++ (VCL)]
    typedef void (__closure *TCbFsStorageEjectedEvent)( System::TObject* Sender);

[C++ (.NET)]
    public __delegate void CbFsMountEvent( CallbackFileSystem^ Sender);

[C#]
    public void CbFsStorageEjectedEvent( CallbackFileSystem Sender);

[VB.NET]
    Sub CbFsStorageEjectedEvent( ByVal Sender As CallbackFileSystem)

[Java]
    void ICbFsStorageEvents.onStorageEjected( CallbackFileSystem Sender );

Parameters

  • Sender - reference to the class that called the delegate/event handler.

Description

This event is fired when the storage is removed by the user using Eject command in Explorer. When the event is fired, the storage has been completely destroyed. You don't need to call UnmountMedia() or DeleteStorage() methods.

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.

See also

OnUnmount    

Discuss this help topic in CBFS Forum