Sitecore 5.0 API

Item.HasChildren Property

Gets a value that indicates if the item has child item.

[Visual Basic]
Public ReadOnly Property HasChildren As Boolean
[C#]
public bool HasChildren {get;}

Remarks

This is an efficient method for determine if the item has child items.

Do not use Count as this retrieves all child items.

See Also

Item Class | Sitecore.Data.Items Namespace