ISearchCrawlScopeManager::RemoveDefaultScopeRule method (searchapi.h)

Removes a default scope rule from the search engine.

Syntax

HRESULT RemoveDefaultScopeRule(
  [in] LPCWSTR pszURL
);

Parameters

[in] pszURL

Type: LPCWSTR

A string identifying the URL or pattern of the default rule to be removed.

Return value

Type: HRESULT

Returns S_OK if successful, or an error otherwise.

Remarks

URLs passed in as parameters to ISearchCrawlScopeManager::RemoveDefaultScopeRule are expected to be fully URL-decoded and without URL control codes. For example, file:///c:\My Documents is fully URL-decoded, whereas file:///c:\My%20Documents is not.

Windows 7 and later: Check out the CrawlScopeCommandLine code sample to see how to define command line options for Crawl Scope Manager (CSM) indexing operations.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header searchapi.h
Redistributable Windows Desktop Search (WDS) 3.0