Share via


ISearchCrawlScopeManager::RemoveScopeRule Method

Removes a scope rule from the search engine.

Syntax

HRESULT RemoveScopeRule(      
    LPCWSTR pszRule
);

Parameters

  • pszRule
    [in] The URL or pattern of a scope rule to be removed.

Return Value

Returns S_OK if successful; returns S_FALSE if the scope rule is not found.

Remarks

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.