Export (0) Print
Expand All
Expand Minimize

IUpdateServer.SearchUpdates Method

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
)
UpdateCollection SearchUpdates (
	String searchText
)
function SearchUpdates (
	searchText : String
) : UpdateCollection

Parameters

searchText

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

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

Exception typeCondition
ArgumentNullException

searchText cannot be null.

ArgumentOutOfRangeException

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
Show:
© 2015 Microsoft