GetSubConditions
Collapse the table of content
Expand the table of content

ICondition::GetSubConditions method

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

riid [in]

Type: REFIID

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

ppv [out, retval]

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

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Redistributable

Windows Desktop Search (WDS) 3.0

Header

Structuredquery.h

IDL

Structuredquery.idl

See also

Reference
ICondition
CONDITION_TYPE
CONDITION_OPERATION
ICondition2

 

 

Community Additions

ADD
Show:
© 2016 Microsoft