IQueryParser::GetOption method (structuredquery.h)

Retrieves a specified simple option value for this query parser.

Syntax

HRESULT GetOption(
  STRUCTURED_QUERY_SINGLE_OPTION option,
  PROPVARIANT                    *pOptionValue
);

Parameters

option

Type: STRUCTURED_QUERY_SINGLE_OPTION

The STRUCTURED_QUERY_SINGLE_OPTION enumerated type that specifies the option to be retrieved.

pOptionValue

Type: PROPVARIANT*

Receives a pointer to the specified option value. For more information, see STRUCTURED_QUERY_SINGLE_OPTION.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

   
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