UtilDrivesGetDriveSize Method
Gets the total size, in bytes, of the specified drive.
Namespace: DevCase.Core.IO.Devices.DrivesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static long GetDriveSize(
char driveLetter
)
Public Shared Function GetDriveSize (
driveLetter As Char
) As Long
Dim driveLetter As Char
Dim returnValue As Long
returnValue = UtilDrives.GetDriveSize(driveLetter)
public:
static long long GetDriveSize(
wchar_t driveLetter
)
static member GetDriveSize :
driveLetter : char -> int64
No code example is currently available or this language may not be supported.
- driveLetter Char
-
The drive letter.
Int64
The disk size, in bytes.
This is a code example.
No code example is currently available or this language may not be supported.
Dim driveSize As String = String.Format("{0} GB", (GetDriveSize("C"c) / (1024 ^ 3)).ToString("n2"))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.