DriveInfoEnumerateDrives Method |
[AlphaFS] Enumerates the drive names of all logical drives on a computer.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static IEnumerable<DriveInfo> EnumerateDrives(
bool fromEnvironment,
bool isReady
)
Public Shared Function EnumerateDrives (
fromEnvironment As Boolean,
isReady As Boolean
) As IEnumerable(Of DriveInfo)
public:
static IEnumerable<DriveInfo^>^ EnumerateDrives(
bool fromEnvironment,
bool isReady
)
static member EnumerateDrives :
fromEnvironment : bool *
isReady : bool -> IEnumerable<DriveInfo>
Parameters
- fromEnvironment
- Type: SystemBoolean
Retrieve logical drives as known by the Environment. - isReady
- Type: SystemBoolean
Retrieve only when accessible (IsReady) logical drives.
Return Value
Type:
IEnumerableDriveInfo
An IEnumerable of type
DriveInfo that represents
the logical drives on a computer.
See Also