DriveType DriveType DriveType DriveType Enum

Definition

Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and Unknown.

public enum class DriveType
[System.Runtime.InteropServices.ComVisible(true)]
public enum DriveType
type DriveType = 
Public Enum DriveType
Inheritance
Attributes

Fields

CDRom CDRom CDRom CDRom 5

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

The drive is a RAM disk.

Removable Removable Removable Removable 2

The drive is a removable storage device, such as a floppy disk drive or a USB flash drive.

Unknown Unknown Unknown Unknown 0

The type of drive is unknown.

Remarks

DriveType is used by the DriveInfo class to indicate drive type. It can be used with the DriveType property.

Applies to