Share via


ISearchRoot::put_RootURL Method

Sets the URL of the current search root.

Syntax

HRESULT put_RootURL(      
    LPCWSTR pszURL
);

Parameters

  • pszURL
    [in] Pointer to a null-terminated, Unicode buffer that contains the URL of this search root.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

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.