This notification event is fired when the storage is removed by the user using Eject command in Explorer.
property OnStorageEjected : TCbFsStorageEjectedEvent;
TCbFsStorageEjectedEvent = procedure( Sender : TObject) of object;
void (__stdcall *CbFsStorageEjectedEvent)(void* Sender);
typedef void (__closure *TCbFsStorageEjectedEvent)( System::TObject* Sender);
public __delegate void CbFsMountEvent( CallbackFileSystem^ Sender);
public void CbFsStorageEjectedEvent( CallbackFileSystem Sender);
Sub CbFsStorageEjectedEvent( ByVal Sender As CallbackFileSystem)
void ICbFsStorageEvents.onStorageEjected( CallbackFileSystem Sender );
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.
See Error handling topic for detailed information about how to report errors, which occur in the event handlers, back to Callback File System.