OnUnmount event/delegate/callback


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

CBFSConnect     See also    


This notification event is fired after CBFS Connect unmounts the storage.


    property OnUnmount : TCBUnmountEvent;
    TCBUnmountEvent = procedure( Sender : TObject) of object;

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

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

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

    public void CBUnmountEvent( CBFSConnect Sender);

    Sub CBUnmountEvent( ByVal Sender As CBFSConnect)

    void ICbFsStorageEvents.onUnmount( CBFSConnect sender);


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


This event is fired after CBFS Connect unmounts the storage and it becomes unavailable for the system. The event is optional - you don't have to handle it.

Error handling

See Error handling topic for detailed information about how to report errors, which occur in the event handlers, back to CBFS Connect. Throwing ECBFSConnectError exception from this event handler will not cause the OS to abort the operation or display an error message to the user.

See also