Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ChildNodes Property

SiteMapNode.ChildNodes Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets all the child nodes of the current SiteMapNode object from the associated SiteMapProvider provider.

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

public virtual SiteMapNodeCollection ChildNodes { get; set; }
/** @property */
public SiteMapNodeCollection get_ChildNodes ()

/** @property */
public void set_ChildNodes (SiteMapNodeCollection value)

public function get ChildNodes () : SiteMapNodeCollection

public function set ChildNodes (value : SiteMapNodeCollection)

Property Value

A read-only SiteMapNodeCollection of child nodes, if any exist for the current node; otherwise, a null reference (Nothing in Visual Basic).

Exception typeCondition

InvalidOperationException

The node is read-only.

The SiteMapNode relies on the SiteMapProvider that it is associated with to keep track of its relationships to other nodes in the site map. This property calls the GetChildNodes method, passing a reference to itself, to retrieve the SiteMapNodeCollection.

If security trimming is enabled, only nodes that the current user is permitted to see are returned. If the user is not permitted to see any child nodes, an empty collection is returned.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft