UtilDrivesGetWin32DiskDrive(Char) Method
Gets a ManagementObject which wraps a instance of 'Win32_DiskDrive' WMI class for 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 ManagementObject GetWin32DiskDrive(
char driveLetter
)
Public Shared Function GetWin32DiskDrive (
driveLetter As Char
) As ManagementObject
Dim driveLetter As Char
Dim returnValue As ManagementObject
returnValue = UtilDrives.GetWin32DiskDrive(driveLetter)
public:
static ManagementObject^ GetWin32DiskDrive(
wchar_t driveLetter
)
static member GetWin32DiskDrive :
driveLetter : char -> ManagementObject
No code example is currently available or this language may not be supported.
- driveLetter Char
-
The drive letter, such as "C" or "D".
ManagementObject
A
ManagementObject which wraps a instance of 'Win32_DiskDrive' WMI class for the specified drive.
This is a code example.
No code example is currently available or this language may not be supported.
Using win32DiskDrive As ManagementObject = GetWin32DiskDrive("C"c)
Console.WriteLine(win32DiskDrive.GetPropertyValue("Name").ToString())
Console.WriteLine(win32DiskDrive.GetPropertyValue("Model").ToString())
Console.WriteLine(win32DiskDrive.GetPropertyValue("SerialNumber").ToString())
Console.WriteLine(win32DiskDrive.GetPropertyValue("DeviceID").ToString())
Console.WriteLine(win32DiskDrive.GetPropertyValue("PNPDeviceID").ToString())
End Using
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.