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.
Searches for updates on a server.
Inheritance
The IUpdateSearcher interface inherits from the IDispatch interface. IUpdateSearcher also has these types of members:
Methods
The IUpdateSearcher interface has these methods.
| IUpdateSearcher::BeginSearch  Begins execution of an asynchronous search for updates. The search uses the search options that are currently configured.  | 
| IUpdateSearcher::EndSearch  Completes an asynchronous search for updates.  | 
| IUpdateSearcher::EscapeString  Converts a string into a string that can be used as a literal value in a search criteria string.  | 
| IUpdateSearcher::get_CanAutomaticallyUpgradeService  Gets and sets a Boolean value that indicates whether future calls to the BeginSearch and Search methods result in an automatic upgrade to Windows Update Agent (WUA). (Get)  | 
| IUpdateSearcher::get_ClientApplicationID  Identifies the current client application. (Get)  | 
| IUpdateSearcher::get_IncludePotentiallySupersededUpdates  Gets and sets a Boolean value that indicates whether the search results include updates that are superseded by other updates in the search results. (Get)  | 
| IUpdateSearcher::get_Online  Gets and sets a Boolean value that indicates whether the UpdateSearcher goes online to search for updates. (Get)  | 
| IUpdateSearcher::get_ServerSelection  Gets and sets a ServerSelection value that indicates the server to search for updates. (Get)  | 
| IUpdateSearcher::get_ServiceID  Gets and sets a site to search when the site to search is not a Windows Update site. (Get)  | 
| IUpdateSearcher::GetTotalHistoryCount  Returns the number of update events on the computer.  | 
| IUpdateSearcher::put_CanAutomaticallyUpgradeService  Gets and sets a Boolean value that indicates whether future calls to the BeginSearch and Search methods result in an automatic upgrade to Windows Update Agent (WUA). (Put)  | 
| IUpdateSearcher::put_ClientApplicationID  Identifies the current client application. (Put)  | 
| IUpdateSearcher::put_IncludePotentiallySupersededUpdates  Gets and sets a Boolean value that indicates whether the search results include updates that are superseded by other updates in the search results. (Put)  | 
| IUpdateSearcher::put_Online  Gets and sets a Boolean value that indicates whether the UpdateSearcher goes online to search for updates. (Put)  | 
| IUpdateSearcher::put_ServerSelection  Gets and sets a ServerSelection value that indicates the server to search for updates. (Put)  | 
| IUpdateSearcher::put_ServiceID  Gets and sets a site to search when the site to search is not a Windows Update site. (Put)  | 
| IUpdateSearcher::QueryHistory  Synchronously queries the computer for the history of the update events.  | 
| IUpdateSearcher::Search  Performs a synchronous search for updates. The search uses the search options that are currently configured.  | 
Remarks
You can create an instance of this interface by using the UpdateSearcher coclass. Use the Microsoft.Update.Searcher program identifier to create the object.
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows XP, Windows 2000 Professional with SP3 [desktop apps only] | 
| Minimum supported server | Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only] | 
| Target Platform | Windows | 
| Header | wuapi.h |