Class DiskDrivePartition
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a partition on a disk drive.
public class DiskDrivePartition : GlobalSerializableClassicBase, IComparable<DiskDrivePartition>
- Inheritance
-
DiskDrivePartition
- Implements
Constructors
DiskDrivePartition()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.DiskDrivePartition class.
public DiskDrivePartition()
Properties
DeviceId
Gets or sets the unique ID of this partition - for example "Disk #0, Partition #0".
public string DeviceId { get; set; }
Property Value
IsActive
Gets or sets whether this partition is marked as the active (boot) partition on the disk.
public BooleanOption IsActive { get; set; }
Property Value
LogicalDrives
Gets or sets the logical drives defined on this partition.
public LogicalDriveCollection LogicalDrives { get; set; }
Property Value
PartitionType
Gets or sets the type of partition.
public DiskDrivePartitionType PartitionType { get; set; }
Property Value
PartitionTypeString
Gets the partition type as a human readable string.
public string PartitionTypeString { get; set; }
Property Value
Size
Gets or sets the size of the partition in kilobytes.
public ulong Size { get; set; }
Property Value
SizeString
Gets the size of the partition in human readable format.
public string SizeString { get; set; }
Property Value
Methods
CompareTo(DiskDrivePartition)
Compares CENTREL.XIA.Configuration.Types.DiskDrivePartition objects to allow sorting by device identifier.
public int CompareTo(DiskDrivePartition other)
Parameters
other
DiskDrivePartitionThe CENTREL.XIA.Configuration.Types.DiskDrivePartition to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.DiskDrivePartition objects.
ToString()
Returns the unique ID of this partition - for example "Disk #0, Partition #0".
public override string ToString()
Returns
- string
The unique ID of this partition.