ICondition2::GetLeafConditionInfo method (structuredquerycondition.h)

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

Syntax

HRESULT GetLeafConditionInfo(
  [out, optional] PROPERTYKEY         *ppropkey,
  [out, optional] CONDITION_OPERATION *pcop,
  [out, optional] PROPVARIANT         *ppropvar
);

Parameters

[out, optional] ppropkey

Type: PROPERTYKEY*

Receives the name of the property of the leaf condition as a PROPERTYKEY.

[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 property 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.

The StructuredQuerySample demonstrates how to read lines from the console, parse them using the system schema, and display the resulting condition trees.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header structuredquerycondition.h

See also

CONDITION_OPERATION

CONDITION_TYPE

ICondition

ICondition2

Reference