DriveType 枚举

定义

定义驱动器类型常数,包括 CDRom、Fixed、Network、NoRootDirectory、Ram、Removable 和 Unknown。

public enum class DriveType
public enum DriveType
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum DriveType
type DriveType = 
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type DriveType = 
Public Enum DriveType
继承
DriveType
属性

字段

CDRom 5

驱动器是一个光盘设备,如 CD 或 DVD-ROM。

Fixed 3

驱动器是一个固定磁盘。

Network 4

驱动器是一个网络驱动器。

NoRootDirectory 1

驱动器没有根目录。

Ram 6

驱动器是一个 RAM 磁盘。

Removable 2

驱动器是一个可移动存储设备,如 U 盘。

Unknown 0

驱动器类型未知。

注解

DriveType 类用于 DriveInfo 指示驱动器类型。 它可以与属性一起使用 DriveType

适用于