Share via


ISearchScopeRule::get_PatternOrURL Method

Gets the pattern or URL for the rule. The scope rules determine what URLs or paths to include or exclude.

Syntax

HRESULT get_PatternOrURL(      
    LPWSTR *ppszPatternOrURL
);

Parameters

  • ppszPatternOrURL
    [out, retval] On return, contains the address of a pointer to a null-terminated, Unicode buffer that contains the pattern or URL string.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

A standard URL might look like this: outlookexpress://{User sid}/{Identity}/Inbox)

A pattern might look like this: file:///c:\documents and settings\*\application data\*

Only exclusion rules use patterns.

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.