ICondition::GetComparisonInfo method (structuredquerycondition.h)

Retrieves the property name, operation, and value from a leaf search condition node.

Syntax

HRESULT GetComparisonInfo(
  [out, optional] LPWSTR              *ppszPropertyName,
  [out, optional] CONDITION_OPERATION *pcop,
  [out, optional] PROPVARIANT         *ppropvar
);

Parameters

[out, optional] ppszPropertyName

Type: LPWSTR*

Receives the name of the property of the leaf condition as a Unicode string.

[out, optional] pcop

Type: CONDITION_OPERATION*

Receives the operation of the leaf condition as a CONDITION_OPERATION enumeration.

[out, optional] ppropvar

Type: PROPVARIANT*

Receives the value of the leaf condition as a PROPVARIANT.

Return value

Type: HRESULT

Returns S_OK if successful, E_FAIL if this is not a leaf node, or an error value otherwise.

Remarks

Any or all of the three parameters can be NULL.

Requirements

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

See also

CONDITION_OPERATION

CONDITION_TYPE

ICondition

ICondition2

Reference