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

此磁碟機是抽取式存放裝置,例如 USB 快閃磁碟機。

Unknown 0

磁碟類型不明。

備註

DriveTypeDriveInfo 類別用來表示磁片磁碟機類型。 它可以與 屬性搭配 DriveType 使用。

適用於