UtilDrivesGetWin32LogicalDisk(DriveInfo) Method
Gets a ManagementObject which wraps a instance of 'Win32_LogicalDisk' 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 GetWin32LogicalDisk(
DriveInfo driveInfo
)
Public Shared Function GetWin32LogicalDisk (
driveInfo As DriveInfo
) As ManagementObject
Dim driveInfo As DriveInfo
Dim returnValue As ManagementObject
returnValue = UtilDrives.GetWin32LogicalDisk(driveInfo)
public:
static ManagementObject^ GetWin32LogicalDisk(
DriveInfo^ driveInfo
)
static member GetWin32LogicalDisk :
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_LogicalDisk' 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 win32LogicalDisk As ManagementObject = GetWin32LogicalDisk(driveInfo)
Console.WriteLine(win32LogicalDisk.GetPropertyValue("Name").ToString())
Console.WriteLine(win32LogicalDisk.GetPropertyValue("FileSystem").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.