TestimoX

API Reference

Class

ServerFeatureQuery

Namespace ComputerX.Features
Assembly ComputerX
Modifiers static

Reads Windows Server features via Win32_ServerFeature.

Inheritance

  • Object
  • ServerFeatureQuery

Methods

public static List<ServerFeatureInfo> Get(String computer, Boolean includeAvailable = false, Nullable<TimeSpan> timeout = null, String[] namePatterns = null) #
Returns: List<ServerFeatureInfo>

Returns server features installed on the specified computer.

Parameters

computer System.String requiredposition: 0
Target computer name or IP.
includeAvailable System.Boolean = false optionalposition: 1
When true, enriches output with optional feature catalog data from WMI so non-installed features can also be returned.
timeout System.Nullable{System.TimeSpan} = null optionalposition: 2
Optional command timeout for catalog enrichment.
namePatterns System.String[] = null optionalposition: 3
Optional wildcard patterns (`*`/`?`) used to filter on feature name fields (FeatureName, DisplayName, and Name).
public static async Task<List<ServerFeatureInfo>> GetAsync(String computer, TimeSpan timeout, CancellationToken ct, Boolean includeAvailable = false, String[] namePatterns = null) #
Returns: Task<List<ServerFeatureInfo>>

Asynchronously returns server features with a timeout.

Parameters

computer System.String requiredposition: 0
Target computer name or IP.
timeout System.TimeSpan requiredposition: 1
Per-query timeout.
ct System.Threading.CancellationToken requiredposition: 2
Cancellation token.
includeAvailable System.Boolean = false optionalposition: 3
When true, enriches output with optional feature catalog data from WMI so non-installed features can also be returned.
namePatterns System.String[] = null optionalposition: 4
Optional wildcard patterns (`*`/`?`) used to filter on feature name fields (FeatureName, DisplayName, and Name).