DriveType 列挙型

定義

CDRom、Fixed、Network、NoRootDirectory、Ram、Removable、Unknown などのドライブの種類の定数を定義します。

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

フィールド

名前 説明
Unknown 0

ドライブの種類が不明です。

NoRootDirectory 1

ドライブにルート ディレクトリがありません。

Removable 2

ドライブは、USB フラッシュ ドライブなどのリムーバブル記憶装置です。

Fixed 3

ドライブは固定ディスクです。

Network 4

ドライブはネットワーク ドライブです。

CDRom 5

ドライブは、CD や DVD-ROM などの光ディスク デバイスです。

Ram 6

ドライブは RAM ディスクです。

注釈

DriveType は、ドライブの種類を示すために DriveInfo クラスによって使用されます。 DriveType プロパティと共に使用できます。

適用対象