IQuerySolution::GetErrors method (structuredquery.h)

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(
  [in]          REFIID riid,
  [out, retval] void   **ppParseErrors
);

Parameters

[in] riid

Type: REFIID

The desired IID of the result, either IID_IEnumUnknown or IID_IEnumVARIANT.

[out, retval] ppParseErrors

Type: void**

Receives a pointer to an enumeration of zero or more IRichChunk objects, each describing one parsing error.

Return value

Type: HRESULT

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

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).

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