Sitecore 5.0 API

ItemPath.IsAncestorOf Method 

Determines whether an item is an ancestor of the current item.

[Visual Basic]
Public Function IsAncestorOf( _
   ByVal item As Item _
) As Boolean
[C#]
public bool IsAncestorOf(
   Item item
);

Parameters

item
Item.

Return Value

true if an item is an ancestor of the current item; otherwise, false.

See Also

ItemPath Class | Sitecore.Data Namespace