DriveType 列舉

定義

定義磁碟類型常數,包括 CDRom、Fixed、Network、NoRootDirectory、Ram、Removable 和 Unknown。Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown.

public enum class DriveType
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum DriveType
type DriveType = 
Public Enum DriveType
繼承
DriveType
屬性

欄位

CDRom 5

光碟機,例如 CD 或 DVD-ROM。The drive is an optical disc device, such as a CD or DVD-ROM.

Fixed 3

固定式磁碟。The drive is a fixed disk.

Network 4

網路磁碟機。The drive is a network drive.

NoRootDirectory 1

此磁碟沒有根目錄。The drive does not have a root directory.

Ram 6

RAM 磁碟。The drive is a RAM disk.

Removable 2

此磁碟機是抽取式存放裝置,例如 USB 快閃磁碟機。The drive is a removable storage device, such as a USB flash drive.

Unknown 0

磁碟類型不明。The type of drive is unknown.

備註

DriveTypeDriveInfo類別會使用來表示磁片磁碟機類型。DriveType is used by the DriveInfo class to indicate drive type. 它可以與DriveType屬性搭配使用。It can be used with the DriveType property.

適用於