DriveType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines constants for drive types, including CDRom, Fixed, Network, NoRootDirectory, Ram, Removable, and 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
- Inheritance
- Attributes
Fields
CDRom | 5 | 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 | The drive is a RAM disk. |
Removable | 2 | The drive is a removable storage device, such as a USB flash drive. |
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈