TestimoX

API Reference

Class

LogicalDiskQuery

Namespace ComputerX.Storage
Assembly ComputerX
Modifiers static

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 requiredposition: 0
Target computer name or IP.
timeout System.Nullable{System.TimeSpan} = null optionalposition: 1
Optional per-query timeout when using WMI.
ct System.Threading.CancellationToken = null optionalposition: 2
Cancellation token.