ISearchCrawlScopeManager::HasParentScopeRule method (searchapi.h)

Identifies whether a given URL has a parent rule in scope.

Syntax

HRESULT HasParentScopeRule(
  [in]          LPCWSTR pszURL,
  [out, retval] BOOL    *pfHasParentRule
);

Parameters

[in] pszURL

Type: LPCWSTR

A string containing the URL to check for a parent rule. The string can contain wildcard characters, such as asterisks (*).

[out, retval] pfHasParentRule

Type: BOOL*

TRUE if pszURL has a parent rule; otherwise, FALSE.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

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