CONDITION_TYPE enumeration
Provides a set of flags to be used with the following methods to indicate the type of condition tree node: ICondition::GetConditionType, IConditionFactory::MakeAndOr, IConditionFactory2::CreateCompoundFromArray, and IConditionFactory2::CreateCompoundFromObjectArray.
Syntax
typedef enum tagCONDITION_TYPE { CT_AND_CONDITION = 0, CT_OR_CONDITION = 1, CT_NOT_CONDITION = 2, CT_LEAF_CONDITION = 3 } CONDITION_TYPE;
Constants
- CT_AND_CONDITION
-
Indicates that the values of the subterms are combined by "AND".
- CT_OR_CONDITION
-
Indicates that the values of the subterms are combined by "OR".
- CT_NOT_CONDITION
-
Indicates a "NOT" comparison of subterms.
- CT_LEAF_CONDITION
-
Indicates that the node is a comparison between a property and a constant value using a CONDITION_OPERATION.
Remarks
In Windows 7, this enumeration is defined in structuredquerycondition.idl and structuredquerycondition.h. Prior to Windows 7 this enumeration was declared in structuredquery.h and structuredquery.idl.
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, Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Redistributable |
Windows Desktop Search (WDS) 3.0 |
|
Header |
|
|
IDL |
|
See also
- Reference
- IConditionGenerator
- IConditionFactory
- IConditionFactory2
- CONDITION_OPERATION
- CONDITION_CREATION_OPTIONS
- ICondition
- ICondition2