API Reference
Class
Wmi (Wmi)
Simple facade for WMI/CIM reads.
Inheritance
- Object
- Wmi
Methods
public static Task<WmiQueryResult> Get(String computer, String namespace, String query, Options options = null, CancellationToken ct = null) #Returns:
Task<WmiQueryResult>Executes a single WMI/CIM query with optional transport and timeout options.
Parameters
- computer System.String
- Target computer name or IP.
- namespace System.String
- Namespace (e.g., root\\cimv2).
- query System.String
- WQL query text.
- options ComputerX.Wmi.Wmi.Options = null
- Transport and timeout options.
- ct System.Threading.CancellationToken = null
- Cancellation token.
public static async Task<ProbeResult> ProbeNamespaceAsync(String computer, String namespace, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #Returns:
Task<ProbeResult>Probes a WMI namespace by issuing SELECT * FROM meta_class and measuring duration.
Parameters
- computer System.String
- Target computer name or IP.
- namespace System.String
- Namespace to query (e.g., root\\cimv2).
- timeout System.Nullable{System.TimeSpan} = null
- Optional timeout for the probe.
- ct System.Threading.CancellationToken = null
- Cancellation token.
Returns
Probe result including count, success and error text.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object