Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves a collection of updates whose metadata contains the given string.
public UpdateCollection SearchUpdates(StringsearchText);
Public Function SearchUpdates( _
ByVal searchText As String _
) As UpdateCollection
Implements IUpdateServer.SearchUpdates
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
A UpdateCollection collection of updates whose metadata contains the search string. The collection is empty if no matches are found.
Exceptions
| Exception type | Condition |
|---|---|
| System.ArgumentNullException | searchText cannot be null. |
| System.ArgumentOutOfRangeException | searchText cannot be an empty string or greater than 255 characters. |
Requirements
| Server | Requires Windows Server 2003 or Windows 2000 Server SP4 and later. |
| Namespace | Defined in Microsoft.UpdateServices.Administration. |
| Assembly | Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll). |
| .NET Framework | Requires .NET Framework 1.1. |