ITcSmTreeItem3::CompareItem

Compares the current ITcSmTreeItem with a specified second one for its XML content (ProduceXml comparison). This comparison can be done only for the specified nodes or for the whole subtree (recursive).

HRESULT CompareItem(
  ITcSmTreeItem* pItem, 
  VARIANT_BOOL bRecursive,
  long* pnRet
);

Parameters

pItem

[in] Reference to the ITcSmTreeItem to be compared with the current ITcSmTreeItem.

bRecursive

[in, defaultvalue(0)] Indicates that the comparison should be processed recursively for the whole subtree (Subtree comparison)

pnRet

[out, retval]: Return value: 0 for Equality, ret > 0 or ret < 0 for InEquality.

Return Values

S_OK

Compare Item succeeded.