IsDescendantOf method

This method indicates whether this Item is descended from Item specified by pItem.

Syntax


C++
HRESULT IsDescendantOf(
   IERUItem* pItem,
   VARIANT_BOOL* pRetVal)
Scripting languages
Boolean = Object.IsDescendantOf(
   IERUItem* pItem)

Parameters


pItem

The potential ancestor of this item.

pRetVal

Upon return, indicates whether this item is a descendant of pItem.

Return value


C++

The return code.

Scripting languages

Upon return, indicates whether this item is a descendant of pItem.

Remarks


This is equivalent to going up this Item's parent chain, looking for pItem.

If pItem is found anywhere in the parent chain, this Item is considered to be a descendant of it.

Home

Applies to

IERUItem