IUpdateServer.SearchUpdates Method (String, UpdateTypes) 

[WSUS 3.0 API - This is prerelease documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Searches for updates of the specified type matching the specified string.

Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in microsoft.updateservices.administration.dll)

Syntax

'Declaration
Function SearchUpdates ( _
    searchText As String, _
    updateTypes As UpdateTypes _
) As UpdateCollection
'Usage
Dim instance As IUpdateServer
Dim searchText As String
Dim updateTypes As UpdateTypes
Dim returnValue As UpdateCollection

returnValue = instance.SearchUpdates(searchText, updateTypes)
UpdateCollection SearchUpdates (
    string searchText,
    UpdateTypes updateTypes
)
UpdateCollection^ SearchUpdates (
    String^ searchText, 
    UpdateTypes updateTypes
)
UpdateCollection SearchUpdates (
    String searchText, 
    UpdateTypes updateTypes
)
function SearchUpdates (
    searchText : String, 
    updateTypes : UpdateTypes
) : UpdateCollection

Parameters

  • searchText
    A string to search for. The string will be checked for a substring match in the Title, Description, KB article number, and Security Bulletin number properties of the Update.
  • updateTypes
    The types of updates to search for. Can be any combination of values from UpdateTypes.

Return Value

A collection of Updates that match the specified searchText, or an empty collection if none are found.

Remarks

This operation requires WSUS Reporter privileges.

Platforms

Windows Server 2003

See Also

Reference

IUpdateServer Interface
IUpdateServer Members
Microsoft.UpdateServices.Administration Namespace

Footer image

Send comments about this topic to Microsoft.