This notification event is fired when the storage is removed by the user using Eject command in Explorer.
property OnStorageEjected : TCBStorageEjectedEvent;
TCBStorageEjectedEvent = procedure( Sender : TObject) of object;
void (__stdcall *CBStorageEjectedEvent)(void* Sender);
typedef void (__closure *TCBStorageEjectedEvent)( System::TObject* Sender);
public __delegate void CBMountEvent( CBFSConnect^ Sender);
public void CBStorageEjectedEvent( CBFSConnect Sender);
Sub CBStorageEjectedEvent( ByVal Sender As CBFSConnect)
void ICbFsStorageEvents.onStorageEjected( CBFSConnect 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 CBFS Connect.