HasChildNodes Property

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
Available since 2.0
Return to top
Show:
© 2016 Microsoft