API Reference
Class
LogicalDiskQuery
Reads logical disk information via WMI for remote hosts or locally via System.IO.
Inheritance
- Object
- LogicalDiskQuery
Methods
public static async Task<List<LogicalDiskInfo>> GetAsync(String computer, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
Task<List<LogicalDiskInfo>>Gets logical disks for a computer. Uses WMI remotely and fast local APIs when targeting the local machine.
Parameters
- computer System.String
- Target computer name or IP.
- timeout System.Nullable{System.TimeSpan} = null
- Optional per-query timeout when using WMI.
- ct System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object