API Reference
Class
Drives
Convenience facade that aliases physical disk queries.
Inheritance
- Object
- Drives
Methods
public static List<DiskInfo> Get(String computer = null, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
List<DiskInfo>Synchronous helper that returns physical disks list.
Parameters
- computer System.String = null
- timeout System.Nullable{System.TimeSpan} = null
- ct System.Threading.CancellationToken = null
public static Task<List<DiskInfo>> GetAsync(String computer = null, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
Task<List<DiskInfo>>Gets physical disks for the local or specified computer.
Parameters
- computer System.String = null
- Target computer; null/empty uses local machine.
- timeout System.Nullable{System.TimeSpan} = null
- Optional per-query timeout.
- ct System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object