DriveType DriveType DriveType DriveType Enum

定義

定義磁碟類型常數,包括 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
繼承
屬性

欄位

CDRom CDRom CDRom CDRom 5

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

Fixed Fixed Fixed Fixed 3

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

Network Network Network Network 4

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

NoRootDirectory NoRootDirectory NoRootDirectory NoRootDirectory 1

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

Ram Ram Ram Ram 6

RAM 磁碟。The drive is a RAM disk.

Removable Removable Removable Removable 2

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

Unknown Unknown Unknown 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.

適用於