Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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_IMPLICITValue: 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_EQUALThe value of the property and the value of the constant must be equal. |
COP_NOTEQUALThe value of the property and the value of the constant must not be equal. |
COP_LESSTHANThe value of the property must be less than the value of the constant. |
COP_GREATERTHANThe value of the property must be greater than the value of the constant. |
COP_LESSTHANOREQUALThe value of the property must be less than or equal to the value of the constant. |
COP_GREATERTHANOREQUALThe value of the property must be greater than or equal to the value of the constant. |
COP_VALUE_STARTSWITHThe value of the property must begin with the value of the constant. |
COP_VALUE_ENDSWITHThe value of the property must end with the value of the constant. |
COP_VALUE_CONTAINSThe value of the property must contain the value of the constant. |
COP_VALUE_NOTCONTAINSThe value of the property must not contain the value of the constant. |
COP_DOSWILDCARDSThe value of the property must match the value of the constant, where '?' matches any single character and '*' matches any sequence of characters. |
COP_WORD_EQUALThe value of the property must contain a word that is the value of the constant. |
COP_WORD_STARTSWITHThe value of the property must contain a word that begins with the value of the constant. |
COP_APPLICATION_SPECIFICThe 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
Reference