IQueryParser::SetOption method (structuredquery.h)
Sets a single option, such as a specified wordbreaker, for parsing an input string.
Syntax
HRESULT SetOption(
[in] STRUCTURED_QUERY_SINGLE_OPTION option,
[in] const PROPVARIANT *pOptionValue
);
Parameters
[in] option
Type: STRUCTURED_QUERY_SINGLE_OPTION
Identifies the type of option to be set.
[in] pOptionValue
Type: PROPVARIANT*
Pointer to a PROPVARIANT specifying the value to set for the option parameter. This value is interpreted differently depending on the value of the option parameter.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
For more information, see STRUCTURED_QUERY_SINGLE_OPTION.
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 | structuredquery.h |
Redistributable | Windows Desktop Search (WDS) 3.0 |