IQuerySolution::GetErrors Method
Identifies parts of the input string that the parser did not recognize or did not use when constructing the IQuerySolution condition tree.
Syntax
HRESULT GetErrors( REFIID riid, void **ppParseErrors );
Parameters
- riid
[in] The desired IID of the result, either IID_IEnumUnknown or IID_IEnumVARIANT.- ppParseErrors
[out, retval] Receives a pointer to an enumeration of zero or more IRichChunk objects, each describing one parsing error.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Each parsing error is represented by an IRichChunk object in which the position information reflects token counts. The IRichChunk object ppsz string is NULL, and the pValue is a PROPVARIANT that contains a lVal identifying the STRUCTURED_QUERY_PARSE_ERROR enumeration.
The valid values for riid are __uuidof(IEnumUnknown) and __uuidof(IEnumVARIANT).