Export (0) Print
Expand All

SiteMapNode.HasChildNodes Property

Gets a value indicating whether the current SiteMapNode has any child nodes.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public virtual bool HasChildNodes { get; }

Property Value

Type: System.Boolean
true if the node has children; otherwise, false.

This property is a convenience property that calls the ChildNodes property internally, so it will not perform better than if you call the ChildNodes property yourself and check to see if it is empty.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft