Table of Contents

Class DiskDrive

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

Represents a physical disk as seen by the operating system, note this disk may infact be a presented RAID LUN.

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

Constructors

DiskDrive()

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

public DiskDrive()

Properties

BusType

Gets or sets the type of interface that is used to connect to this device - for example "IDE".

public DiskDriveBusType BusType { get; set; }

Property Value

DiskDriveBusType

BusTypeString

Gets the type of interface that is used to connect to this device - for example "IDE".

public string BusTypeString { get; set; }

Property Value

string

BytesPerSector

Gets or sets the number of bytes in each sector for the physical disk drive - for example "512".

public int BytesPerSector { get; set; }

Property Value

int

CapabilityDescriptions

Gets or sets the capabilities of this drive - for example "SMART Notification".

public SerializableStringCollection CapabilityDescriptions { get; set; }

Property Value

SerializableStringCollection

DisplayName

Gets the display name for this drive - for example "[1] ST980811AS ATA Device" or "Disk 1".

public string DisplayName { get; }

Property Value

string

FirmwareRevision

Gets or sets the firmware revision of the drive. This setting is available on Windows Server 2008 and above.

public string FirmwareRevision { get; set; }

Property Value

string

Guid

Gets or sets the GUID for the disk. This only applies to GPT disks.

public string Guid { get; set; }

Property Value

string

Index

Gets or sets the index of the drive as shown in the Disk Management MMC Console.

public int Index { get; set; }

Property Value

int

IsDynamic

Gets or sets whether the drive is a dynamic disk.

public BooleanOption IsDynamic { get; set; }

Property Value

BooleanOption

Location

Gets or sets information about the location of the drive - for example "Integrated : Adapter 2 : Port 0".

public string Location { get; set; }

Property Value

string

LogicalDrives

Gets the logical drives configured for all partitions on this hard drive.

public LogicalDriveCollection LogicalDrives { get; }

Property Value

LogicalDriveCollection

Manufacturer

Gets or sets the name of the manufacturer of this drive for example "IBM".

public string Manufacturer { get; set; }

Property Value

string

Model

Gets or sets the model of the drive - for example "ST980811AS ATA Device".

public string Model { get; set; }

Property Value

string

OperationalStatus

Gets or sets the operational status of the drive. This is only available on Windows Server 2012 and above, when using PowerShell remoting.

public DiskDriveOperationalStatus OperationalStatus { get; set; }

Property Value

DiskDriveOperationalStatus

OperationalStatusString

Gets the operational status of the drive as a human readable string.

public string OperationalStatusString { get; set; }

Property Value

string

PartitionStyle

Gets or sets the partition style of the disk.

public DiskDrivePartitionStyle PartitionStyle { get; set; }

Property Value

DiskDrivePartitionStyle

PartitionStyleString

Gets the partition style of the disk.

public string PartitionStyleString { get; set; }

Property Value

string

Partitions

Gets or sets the partitons configured on this hard drive.

public DiskDrivePartitionCollection Partitions { get; set; }

Property Value

DiskDrivePartitionCollection

Remarks

This is ignored by the data comparer that uses the logical disk information at the root of the hardware summary object.

SectorsPerTrack

Gets or sets the number of sectors in each track for this physical disk drive.

public int SectorsPerTrack { get; set; }

Property Value

int

SerialNumber

Gets or sets the serial number of this drive.

public string SerialNumber { get; set; }

Property Value

string

Signature

Gets or sets the disk signature of the device - for example "3643136293". Available from Windows XP onwards.

public string Signature { get; set; }

Property Value

string

Size

Gets or sets the size of the physical drive in megabytes.

public int Size { get; set; }

Property Value

int

SizeString

Gets the size of the drive as a human readable string.

public string SizeString { get; set; }

Property Value

string

StoragePoolNames

Gets or sets the name of the storage space the drive is a member of. This applies to Windows Server 2012 and above.

public SerializableStringCollection StoragePoolNames { get; set; }

Property Value

SerializableStringCollection

UnallocatedSpace

Gets the unallocated space on this drive in megabytes.

public int UnallocatedSpace { get; }

Property Value

int

UnallocatedSpaceString

Gets the amount of unallocated space on the drive as a human readable string.

public string UnallocatedSpaceString { get; }

Property Value

string

Methods

CompareTo(DiskDrive)

Compares two CENTREL.XIA.Configuration.Types.DiskDrive objects to allow sorting by the device index.

public int CompareTo(DiskDrive other)

Parameters

other DiskDrive

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

Returns

int

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

ToString()

Returns the display name for this drive - for example "[1] ST980811AS ATA Device" or "Disk 1".

public override string ToString()

Returns

string

The display name for this drive.