CallbackDisk

Create and manage virtual disk drives from your Windows applications

CBDisk.DeleteStorage method

Filter:

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

CBDisk     See also    

Overview

Removes a storage from the system.

Declaration

[Pascal]
    procedure DeleteStorage(ForceUnmount: boolean);

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

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

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

[C#]
    void DeleteStorage(bool ForceUnmount);

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

Parameters

  • ForceUnmount - when the parameter is set to true, the storage is deleted no matter if any mounting points exist.

Description

Use this method to remove the storage ("virtual disk drive") from the system.
When ForceUnmount is true, all mounting points are removed and all open files are forcefully closed. If ForceUnmount is false and there are mounting points present, the method fails (an exception is raised).

See also

CreateStorage    

Back to top