API Reference
Class
WindowsOptionalFeaturesQuery
Queries Windows optional features using WMI (Win32_OptionalFeature).
Inheritance
- Object
- WindowsOptionalFeaturesQuery
Methods
public static List<WindowsOptionalFeatureInfo> Get(String computer) #Returns:
List<WindowsOptionalFeatureInfo>Gets the list of Windows optional features on the specified computer.
Parameters
- computer System.String
- The target computer name. Use MachineName for local.
Returns
List of optional feature entries. Returns an empty list on failure.
public static async Task<List<WindowsOptionalFeatureInfo>> GetAsync(String computer, TimeSpan timeout, CancellationToken ct) #Returns:
Task<List<WindowsOptionalFeatureInfo>>Asynchronously gets the list of Windows optional features on the specified computer.
Parameters
- computer System.String
- The target computer name.
- timeout System.TimeSpan
- Query timeout.
- ct System.Threading.CancellationToken
- Cancellation token.
Returns
List of optional feature entries. Returns an empty list on failure.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object