IQueryParser::GetOption Method

Retrieves a specified simple option value for this query parser.

Syntax

HRESULT GetOption(      
    STRUCTURED_QUERY_SINGLE_OPTION option,
    PROPVARIANT *pOptionValue
);

Parameters

  • option
    [in]  The STRUCTURED_QUERY_SINGLE_OPTION enumerated type that specifies the option to be retrieved.
  • pOptionValue
    [out, retval]  Receives a pointer to the specified option value. For more information, see STRUCTURED_QUERY_SINGLE_OPTION.

Return Value

Returns S_OK if successful, or an error value otherwise.