UtilDrivesGetHardDriveHandle(DriveInfo) Method
Gets a handle to the specified hard 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 SafeFileHandle GetHardDriveHandle(
DriveInfo driveInfo
)
Public Shared Function GetHardDriveHandle (
driveInfo As DriveInfo
) As SafeFileHandle
Dim driveInfo As DriveInfo
Dim returnValue As SafeFileHandle
returnValue = UtilDrives.GetHardDriveHandle(driveInfo)
public:
static SafeFileHandle^ GetHardDriveHandle(
DriveInfo^ driveInfo
)
static member GetHardDriveHandle :
driveInfo : DriveInfo -> SafeFileHandle
No code example is currently available or this language may not be supported.
- driveInfo DriveInfo
-
A DriveInfo instance that represents the hard drive.
SafeFileHandle
A
SafeFileHandle that represents the handle to the specified hard 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 deviceHandle As SafeFileHandle = GetHardDriveHandle(driveInfo)
Console.WriteLine(deviceHandle.DangerousGetHandle().ToInt32())
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.
ArgumentException
|
The specified drive must be a hard drive.
|