Skip to main content

DriveInfo Class

Namespace: System.IO · Assembly: GHIElectronics.TinyCLR.IO

Information about a mounted volume — total/available space, type, root path.

public sealed class DriveInfo

Constructors

DriveInfo(string driveName)

public DriveInfo(string driveName)

No description available.

ParameterTypeDescription
driveNamestring

Properties

Name

public string Name { get; }

The native API name. (inherited)

RootDirectory

public DirectoryInfo RootDirectory { get; }

No description available.

DriveType

public DriveType DriveType { get; }

No description available.

DriveFormat

public string DriveFormat { get; }

No description available.

IsReady

public bool IsReady { get; }

No description available.

AvailableFreeSpace

public long AvailableFreeSpace { get; }

No description available.

TotalFreeSpace

public long TotalFreeSpace { get; }

No description available.

TotalSize

public long TotalSize { get; }

Total size of the region, in bytes. (inherited)

VolumeLabel

public string VolumeLabel { get; }

No description available.

Methods

GetDrives()

public static DriveInfo[] GetDrives()

No description available.

Returns DriveInfo[]

RegisterDriveProvider(IDriveProvider provider)

public static IDriveProvider RegisterDriveProvider(IDriveProvider provider)

No description available.

ParameterTypeDescription
providerIDriveProvider

Returns IDriveProvider

DeregisterDriveProvider(IDriveProvider provider)

public static void DeregisterDriveProvider(IDriveProvider provider)

No description available.

ParameterTypeDescription
providerIDriveProvider