Table of Contents

Class LogicalDrive

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a logical drive or volume found on a disk.

public class LogicalDrive : GlobalSerializableClassicBase, IComparable<LogicalDrive>
Inheritance
LogicalDrive
Implements

Constructors

LogicalDrive()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.LogicalDrive class.

public LogicalDrive()

Properties

Caption

Gets or sets the caption of this logical disk - for example "C:".

public string Caption { get; set; }

Property Value

string

FileSystem

Gets or sets of the file system of this logical drive - for example "NTFS".

public string FileSystem { get; set; }

Property Value

string

FreeSpace

Gets or sets the freespace available on the logical drive in kilobytes.

public ulong FreeSpace { get; set; }

Property Value

ulong

PercentageFree

Gets the percentage of space that is free in this logical drive.

public int PercentageFree { get; set; }

Property Value

int

PercentageUsed

Gets the percentage of space that is used in this logical drive.

public int PercentageUsed { get; set; }

Property Value

int

Size

Gets or sets the size of the logical drive in kilobytes.

public ulong Size { get; set; }

Property Value

ulong

SizeString

Gets the size of the logical drive in human readable format.

public string SizeString { get; set; }

Property Value

string

VolumeName

Gets or sets the label of the volume as seen in "My Computer".

public string VolumeName { get; set; }

Property Value

string

VolumeSerialNumber

Gets or sets the serial number of the volume.

public string VolumeSerialNumber { get; set; }

Property Value

string

Methods

CompareTo(LogicalDrive)

Compares two CENTREL.XIA.Configuration.Types.LogicalDrive objects to allow sorting alphabetically by name.

public int CompareTo(LogicalDrive other)

Parameters

other LogicalDrive

The CENTREL.XIA.Configuration.Types.LogicalDrive to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.LogicalDrive objects.

ToString()

Returns the caption of this logical drive - for example "C:".

public override string ToString()

Returns

string

The caption of this logical drive.