Share via


ISearchItemsChangedSink::StartedMonitoringScope Method

Permits an index-managed notification source to add itself to a list of "monitored scopes".

Syntax

HRESULT StartedMonitoringScope(      
    LPCWSTR pszURL
);

Parameters

  • pszURL
    [in] A pointer to a null-terminated, Unicode string that is the start address for the scope of monitoring.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

When a notification agent comes online it calls ISearchPersistentItemsChangedSink::StartedMonitoringScope which adds the scope to the list of sources. If the source is new (removed previously by ISearchPersistentItemsChangedSink::StoppedMonitoringScope, or never created in the first place) the indexer starts an incremental crawl of the corresponding document store. This is designed to pick up any changes in the store that occurred while the notification agent was offline.

See Also

ISearchItemsChangedSink::StoppedMonitoringScope, ISearchScopeRule, ISearchCrawlScopeManager, Notifying the Index of Changes