ICondition::GetComparisonInfo Method

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

Syntax

HRESULT GetComparisonInfo(      
    LPWSTR *ppszPropertyName,
    CONDITION_OPERATION *pOperation,
    PROPVARIANT *pValue
);

Parameters

  • ppszPropertyName
    [out]  Receives the name of the property of the leaf condition as a Unicode string.
  • pOperation
    [out]  Receives the operation of the leaf condition as a CONDITION_OPERATION enumeration.
  • pValue
    [out]  Receives the value of the leaf condition as a PROPVARIANT.

Return Value

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.

See Also

ICondition, CONDITION_TYPE, CONDITION_OPERATION, ICondition2