TestimoX

API Reference

Class

WindowsOptionalFeatures

Namespace ComputerX.Features
Assembly ComputerX
Modifiers static

High-level entry point for querying Windows optional features. Mirrors the simple Get()/GetAsync() pattern used across ComputerX.

Inheritance

  • Object
  • WindowsOptionalFeatures

Methods

public static List<WindowsOptionalFeatureInfo> Get(String computer = null) #
Returns: List<WindowsOptionalFeatureInfo>

Gets the list of Windows optional features for the specified computer.

Parameters

computer System.String = null optionalposition: 0
Optional computer name. Defaults to local machine when null.
public static Task<List<WindowsOptionalFeatureInfo>> GetAsync(String computer = null, Nullable<TimeSpan> timeout = null, CancellationToken ct = null) #
Returns: Task<List<WindowsOptionalFeatureInfo>>

Asynchronously gets the list of Windows optional features for the specified computer.

Parameters

computer System.String = null optionalposition: 0
Optional computer name. Defaults to local machine when null.
timeout System.Nullable{System.TimeSpan} = null optionalposition: 1
Optional timeout. Defaults to WmiDefaultTimeout.
ct System.Threading.CancellationToken = null optionalposition: 2
Cancellation token.