ICondition::GetSubConditions method (structuredquerycondition.h)

Retrieves a collection of the subconditions of the search condition node and the IID of the interface for enumerating the collection.

Syntax

HRESULT GetSubConditions(
  [in]          REFIID riid,
  [out, retval] void   **ppv
);

Parameters

[in] riid

Type: REFIID

The desired IID of the enumerating interface: either IID_IEnumUnknown, IID_IEnumVARIANT or (for a negation condition) IID_ICondition.

[out, retval] ppv

Type: void**

Receives a collection of zero or more ICondition objects. Each object is a subcondition of this condition node. If riid was IID_ICondition and this is a negation condition, this parameter receives the single subcondition.

Return value

Type: HRESULT

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

Remarks

The riid parameter must be the GUID of an IEnumUnknown or IEnumVARIANT interface or in the case of a negation node, IID_ICondition.

If the subcondition is a negation node, ppv is set to an enumeration of one element.

If the node is a conjunction or disjunction node, ppv is set to an enumeration of the subconditions.

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