API Reference
Class
OsInfoQuery
Queries extended operating system information via WMI/CIM with an optional asynchronous API and a local fallback.
Inheritance
- Object
- OsInfoQuery
Methods
public static OsInfo Get(String computer) #Returns:
OsInfoRetrieves operating system details from the target computer.
Parameters
- computer System.String
- Target computer (DNS or NetBIOS).
Returns
Populated OsInfo object.
public static async Task<OsInfo> GetAsync(String computer, TimeSpan timeout, CancellationToken ct) #Returns:
Task<OsInfo>Asynchronously retrieves operating system details with a timeout and cancellation token.
Parameters
- computer System.String
- Target computer (DNS or NetBIOS).
- timeout System.TimeSpan
- Maximum WMI/CIM query duration.
- ct System.Threading.CancellationToken
- Cancellation token.
Returns
Populated OsInfo object.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object