Discuss this help topic in CBFS Forum

CallbackFileSystem.UnmountMedia method

Filter:

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

CallbackFileSystem     See also    

Overview

Removes a media from the "drive".

Declaration

[Pascal]
    procedure UnmountMedia(ForceUnmount: boolean);

[C++ (Lib)]
    void UnmountMedia(bool ForceUnmount);

[C++ (VCL)]
    void __fastcall UnmountMedia(bool ForceUnmount);

[C++ (.NET)]
    void UnmountMedia(bool ForceUnmount);

[C#]
    void UnmountMedia(bool ForceUnmount);

[VB.NET]
    Sub UnmountMedia(ByVal ForceUnmount As Boolean)

[Java]
    void unmountMedia( boolean forceUnmount);

Parameters

  • ForceUnmount - when the parameter is set to true, the media is unmounted no matter if there are open file or directory handles.

Description

Use this method to remove the media from the "drive", leaving the drive and existing mounting points untouched.
When ForceUnmount is true, all all open files are forcefully closed. If ForceUnmount is false and open files or directories are present, the method fails (an exception is raised).

Call from...

This method may be called only from outside of callback / event handlers.

See also

MountMedia     DeleteStorage    

Discuss this help topic in CBFS Forum