UtilDrivesGetHardDriveHandle(DriveInfo) Method

Gets a handle to the specified hard drive.

Definition

Namespace: DevCase.Core.IO.Devices.Drives
Assembly: 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
)

Parameters

driveInfo  DriveInfo
A DriveInfo instance that represents the hard drive.

Return Value

SafeFileHandle
A SafeFileHandle that represents the handle to the specified hard drive.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

ArgumentException The specified drive must be a hard drive.

See Also