ISearchCrawlScopeManager::GetParentScopeVersionId Method

Gets the version ID of the parent inclusion URL.

Syntax

HRESULT GetParentScopeVersionId(      
    LPCWSTR pszUrl,
    LONG *plScopeId
);

Parameters

  • pszUrl
    [in] A string containing the current URL.
  • plScopeId
    [out] On return, contains a pointer to the version ID of the parent inclusion URL for pszUrl.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Use this method to determine whether the indexer is aware of a change in a data store or scope (for example, a data store is removed and then re-added to the index), potentially requiring a new push of the hierarchical parent of the store's URL.

This ID can change if a scope rule is removed and then added again. This method returns S_FALSE if no parent inclusion URL was found.

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.