IUpdateServer.SearchUpdates Method (String)

 

Applies To: Windows Server Update Services

Gets a collection of updates whose metadata contains the given string.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

UpdateCollection SearchUpdates(
	string searchText
)

Parameters

searchText
Type: System.String

String to search for. The method compares the string to the following update properties:

  • Title

  • Description

  • Knowledge Base (KB) article number

  • Microsoft Security Response Center (MSRC) severity

  • Security Bulletin number

The update is added to the returned collection if the string is a substring of one of these properties. The comparison is case-insensitive.

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateCollection

An UpdateCollection collection of updates whose metadata contains the search string. The collection is empty if no matches are found.

Exception Condition
ArgumentNullException

searchText cannot be null.

ArgumentOutOfRangeException

searchText cannot be an empty string or greater than 255 characters.

Return to top

Community Additions

ADD
Show: