Export (0) Print
Expand All

CONDITION_OPERATION enumeration

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                 = 1,
  COP_NOTEQUAL              = 2,
  COP_LESSTHAN              = 3,
  COP_GREATERTHAN           = 4,
  COP_LESSTHANOREQUAL       = 5,
  COP_GREATERTHANOREQUAL    = 6,
  COP_VALUE_STARTSWITH      = 7,
  COP_VALUE_ENDSWITH        = 8,
  COP_VALUE_CONTAINS        = 9,
  COP_VALUE_NOTCONTAINS     = 10,
  COP_DOSWILDCARDS          = 11,
  COP_WORD_EQUAL            = 12,
  COP_WORD_STARTSWITH       = 13,
  COP_APPLICATION_SPECIFIC  = 14
} CONDITION_OPERATION;

Constants

COP_IMPLICIT

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

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

Structuredquerycondition.h

IDL

Structuredquerycondition.idl

See also

Reference
IConditionGenerator
IConditionFactory
IConditionFactory2
CONDITION_TYPE
CONDITION_CREATION_OPTIONS
ICondition
ICondition2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft