CONDITION_OPERATION enumeration (structuredquerycondition.h)

Provides a set of flags to be used with following methods to indicate the operation in ICondition::GetComparisonInfo, ICondition2::GetLeafConditionInfo, IConditionFactory::MakeLeaf, IConditionFactory2::CreateBooleanLeaf, IConditionFactory2::CreateIntegerLeaf, IConditionFactory2::MakeLeaf, IConditionFactory2::CreateStringLeaf, and IConditionGenerator::GenerateForLeaf.

Syntax

typedef enum tagCONDITION_OPERATION {
  COP_IMPLICIT = 0,
  COP_EQUAL,
  COP_NOTEQUAL,
  COP_LESSTHAN,
  COP_GREATERTHAN,
  COP_LESSTHANOREQUAL,
  COP_GREATERTHANOREQUAL,
  COP_VALUE_STARTSWITH,
  COP_VALUE_ENDSWITH,
  COP_VALUE_CONTAINS,
  COP_VALUE_NOTCONTAINS,
  COP_DOSWILDCARDS,
  COP_WORD_EQUAL,
  COP_WORD_STARTSWITH,
  COP_APPLICATION_SPECIFIC
} CONDITION_OPERATION;

Constants

 
COP_IMPLICIT
Value: 0
An implicit comparison between the value of the property and the value of the constant. For an unresolved condition, COP_IMPLICIT means that a user did not type an operation. In contrast, a resolved condition will always have a condition other than the COP_IMPLICIT operation.
COP_EQUAL
The value of the property and the value of the constant must be equal.
COP_NOTEQUAL
The value of the property and the value of the constant must not be equal.
COP_LESSTHAN
The value of the property must be less than the value of the constant.
COP_GREATERTHAN
The value of the property must be greater than the value of the constant.
COP_LESSTHANOREQUAL
The value of the property must be less than or equal to the value of the constant.
COP_GREATERTHANOREQUAL
The value of the property must be greater than or equal to the value of the constant.
COP_VALUE_STARTSWITH
The value of the property must begin with the value of the constant.
COP_VALUE_ENDSWITH
The value of the property must end with the value of the constant.
COP_VALUE_CONTAINS
The value of the property must contain the value of the constant.
COP_VALUE_NOTCONTAINS
The value of the property must not contain the value of the constant.
COP_DOSWILDCARDS
The value of the property must match the value of the constant, where '?' matches any single character and '*' matches any sequence of characters.
COP_WORD_EQUAL
The value of the property must contain a word that is the value of the constant.
COP_WORD_STARTSWITH
The value of the property must contain a word that begins with the value of the constant.
COP_APPLICATION_SPECIFIC
The application is free to interpret this in any suitable way.

Remarks

Because a resolved condition never has a COP_IMPLICIT operation, applications that evaluate condition trees should not encounter it. However, COP_IMPLICIT could be used in comparing the output of either ICondition::GetComparisonInfo or ICondition2::GetLeafConditionInfo for a parsed unresolved condition to the output for a resolved condition.

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.

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_TYPE

ICondition

ICondition2

IConditionFactory

IConditionFactory2

IConditionGenerator

Reference