API Reference
WindowsUpdateQueryOptions
Controls Windows Update Agent search criteria for available or pending updates.
Inheritance
- Object
- WindowsUpdateQueryOptions
Constructors
public WindowsUpdateQueryOptions() #Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Nullable<WindowsUpdateServerSelection> ServerSelection { get; set; } #Optional WUA searcher server selection. When omitted, the searcher uses the computer default.
public String ServiceId { get; set; } #Optional update service identifier used when ServerSelection is Others.
public String ServiceName { get; set; } #Optional update service display name resolved through WindowsUpdateServiceQuery. When supplied without ServiceId, the reusable query resolves the service identifier automatically.
public Nullable<Boolean> Online { get; set; } #Optional flag controlling whether the searcher contacts the online service instead of using cached scan data.
public String Query { get; set; } #Optional raw WUA criteria string. When supplied, structured filters are ignored and the string is sent to WUA as-is.
public Nullable<WindowsUpdateInstallationStatus> InstallationStatus { get; set; } #Optional installation state filter. When omitted, the reusable query defaults to not-installed updates.
public Nullable<WindowsUpdateQueryType> UpdateType { get; set; } #Optional update type filter.
public Nullable<WindowsUpdateDeploymentAction> DeploymentAction { get; set; } #Optional deployment action filter. Use All to suppress this criterion explicitly.
public String[] UpdateIds { get; set; } #Optional update identifiers to match.
public String[] KbArticleIds { get; set; } #Optional KB article identifiers to match. These are applied as a reusable post-collection filter because WUA criteria do not expose KB matching directly.
public String[] CategoryIds { get; set; } #Optional category identifiers to match.
public Nullable<Boolean> IsAssigned { get; set; } #Optional assigned-state filter.
public Nullable<Boolean> RebootRequired { get; set; } #Optional reboot-required filter.
public Nullable<Boolean> BrowseOnly { get; set; } #Optional browse-only filter.
public Nullable<Boolean> AutoSelectOnWebSites { get; set; } #Optional auto-select-on-web-sites filter.
public Nullable<Int32> RevisionNumber { get; set; } #Optional update revision number filter. This is typically useful together with UpdateIds.
public String CustomCriteria { get; set; } #Optional custom WUA criteria appended to the structured query with and.
public Int32 MaxUpdates { get; set; } #Optional maximum number of returned updates after collection. Set to 0 to disable the cap.