<PackageReference Include="Relativity.Server.Utility.SDK" Version="5000.0.0" />

DriveSpace

public class DriveSpace
Represents the space available on a particular drive.
public string DriveName { get; }

Gets the name of this drive.

public double FreePercent { get; }

Gets the percentage of free space available on this drive.

public long TotalFreeSpace { get; }

Gets the total free space available on this drive.

public long TotalSpace { get; }

Gets the total space available on this drive.

public double UsedPercent { get; }

Gets the percentage of used space available on this drive.

public long UsedSpace { get; }

Gets the space used on this drive on this drive.

public long UserFreeSpace { get; }

Gets the free space available to the user on this drive.

public DriveSpace(string driveName)

Initializes a new instance of DriveSpace retrieving information for the specified drive name.

public DriveSpace(string driveName, int retries)

Initializes a new instance of DriveSpace retrieving information for the specified drive name. Retries the specified number of times on failure.

public static string ToFormattedMegabytes(long numBytes)

Converts the provided number of bytes to a formatted string representing the number of megabytes.

E.g. 50000000000 -> "47,683.716 MB"

public static long ToGigabytes(long numBytes)

Converts the provided number of bytes to gigabytes.

public void Refresh()

Populates this DriveSpace instance with retry on failure.

public string[][] ToReport()

Gets a string report of the information about this drive.