CONDITION_TYPE enumeration (structuredquerycondition.h)

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,
  CT_NOT_CONDITION,
  CT_LEAF_CONDITION
} CONDITION_TYPE;

Constants

 
CT_AND_CONDITION
Value: 0
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 demonstrates how to read lines from the console, parse them using the system schema, and display the resulting condition trees.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista, Windows 7 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header structuredquerycondition.h
Redistributable Windows Desktop Search (WDS) 3.0

See also

CONDITION_CREATION_OPTIONS

CONDITION_OPERATION

ICondition

ICondition2

IConditionFactory

IConditionFactory2

IConditionGenerator

Reference