IConditionFactory interface
Provides methods for creating or resolving a condition tree that was obtained by parsing a query string.
Members
The IConditionFactory interface inherits from the IUnknown interface. IConditionFactory also has these types of members:
Methods
The IConditionFactory interface has these methods.
| Method | Description |
|---|---|
| MakeAndOr |
Creates a condition node that is a logical conjunction (AND) or disjunction (OR) of a collection of subconditions. |
| MakeLeaf |
Creates a leaf condition node that represents a comparison of property value and constant value. |
| MakeNot |
Creates a condition node that is a logical negation (NOT) of another condition (a subnode of this node). |
| Resolve |
Performs a variety of transformations on a condition tree, including the following: resolves conditions with relative date/time expressions to conditions with absolute date/time (as a VT_FILETIME); turns other recognized named entities into condition trees with actual values; simplifies condition trees; replaces virtual or compound properties with OR trees of other properties; removes condition trees resulting from queries with property keywords that had no condition applied. |
Remarks
The StructuredQuerySample code sample, available on Code Gallery and the Windows 7 SDK, demonstrates how to read lines from the console, parse them using the system schema, and display the resulting condition trees.
Requirements
|
Minimum supported client |
Windows XP with SP2, Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 with SP1 [desktop apps only] |
|
Redistributable |
Windows Desktop Search (WDS) 3.0 |
|
Header |
|
|
IDL |
|
See also