IQueryParser::ParsePropertyValue Method
Parses a condition for a specified property.
Syntax
HRESULT ParsePropertyValue( LPCWSTR pszPropertyName, LPCWSTR pszInputString, IQuerySolution **ppSolution );
Parameters
- pszPropertyName
[in] Property name.- pszInputString
[in] Query string to be parsed, relative to that property.- ppSolution
[out, retval] Receives an IQuerySolution object. The calling application must release it by calling its IUnknown::Release method.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The input string can be anything that could have been written immediately after a property in a structured query. For example, "from:(bill OR alex)" would be a valid structured query, so passing System.StructuredQuery.Virtual.From (for which From is a keyword) in the pszPropertyName parameter and "(bill OR alex)" or "bill OR alex" in the pszInputString parameter would be valid. This would result in an OR of leaf nodes that relate the System.StructuredQuery.Virtual.From property with the strings "bill" and "alex".