ISearchCrawlScopeManager::AddRoot Method

Adds a new search root to the search engine.


HRESULT AddRoot(      
    ISearchRoot *pSearchRoot


  • pSearchRoot
    [in]  An ISearchRoot describing the new search root to add.

Return Value

Returns S_OK if successful, or an error value otherwise.


Overrides any existing root definition for the URL.

Windows 7 and later: the CrawlScopeCommandLine code sample, available on Code Gallery and the Windows 7 SDK, demonstrates how to define command line options for Crawl Scope Manager (CSM) indexing operations.