UtilDrivesGetWin32DiskDrive(DriveInfo) 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(
DriveInfo driveInfo
)
Public Shared Function GetWin32DiskDrive (
driveInfo As DriveInfo
) As ManagementObject
Dim driveInfo As DriveInfo
Dim returnValue As ManagementObject
returnValue = UtilDrives.GetWin32DiskDrive(driveInfo)
public:
static ManagementObject^ GetWin32DiskDrive(
DriveInfo^ driveInfo
)
static member GetWin32DiskDrive :
driveInfo : DriveInfo -> ManagementObject
No code example is currently available or this language may not be supported.
- driveInfo DriveInfo
-
A DriveInfo instance that represents the drive.
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.
Dim driveInfo As DriveInfo = My.Computer.FileSystem.GetDriveInfo("C"c)
Using win32DiskDrive As ManagementObject = GetWin32DiskDrive(driveInfo)
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.