OnStorageEjected event/delegate/callback

Filter:

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

CBFSConnect     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 : TCBStorageEjectedEvent;
    TCBStorageEjectedEvent = procedure( Sender : TObject) of object;

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

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

[C++ (.NET)]
    public __delegate void CBMountEvent( CBFSConnect^ Sender);

[C#]
    public void CBStorageEjectedEvent( CBFSConnect Sender);

[VB.NET]
    Sub CBStorageEjectedEvent( ByVal Sender As CBFSConnect)

[Java]
    void ICbFsStorageEvents.onStorageEjected( CBFSConnect 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 CBFS Connect.

See also

OnUnmount