System.IO.DriveInfo.GetDrives C# (CSharp) Méthode

GetDrives() public static méthode

public static GetDrives ( ) : System.IO.DriveInfo[]
Résultat System.IO.DriveInfo[]
        public static System.IO.DriveInfo[] GetDrives() { throw null; }
        public override string ToString() { throw null; }

Same methods

DriveInfo::GetDrives ( ) : System.IO.DriveInfo[]

Usage Example

 public IReadOnlyList <DriveInfo> GetMountedDrives() =>
 IoDriveInfo
 .GetDrives()
 .Select(CreateFrom)
 .WhereNotNull()
 .ToArray();