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)

Syntax

UpdateCollection SearchUpdates(
    string searchText
)
UpdateCollection^ SearchUpdates(
    String^ searchText
)
abstract SearchUpdates : 
        searchText:string -> UpdateCollection
Function SearchUpdates (
    searchText As String
) As UpdateCollection

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.

Exceptions

Exception

Condition

ArgumentNullException

searchText cannot be null.

ArgumentOutOfRangeException

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

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top