Class DiskManager
DiskManager class. Used to manage drives.
Inheritance
System.Object
DiskManager
Namespace: Cosmos.System.FileSystem
Assembly: Cosmos.System2.dll
Syntax
public class DiskManager : object
Constructors
| Improve this Doc View SourceDiskManager(String)
Create new instance of DiskManager class.
Declaration
public DiskManager(string aDriveName)
Parameters
Type | Name | Description |
---|---|---|
System.String | aDriveName | A drive name assinged to the disk. |
Properties
| Improve this Doc View SourceName
Get drive name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceChangeDriveLetter(String)
Change drive letter.
Declaration
public void ChangeDriveLetter(string aNewName)
Parameters
Type | Name | Description |
---|---|---|
System.String | aNewName | A new name to be set. |
CreatePartion(Int64, Int64)
Create Partition.
Declaration
public void CreatePartion(long start, long end)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | start | Start. |
System.Int64 | end | End. |
Format(String, Boolean)
Format drive. (delete all)
Declaration
public void Format(string aDriveFormat, bool aQuick = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | aDriveFormat | A drive format. |
System.Boolean | aQuick | Quick format. |