SiteMapNode.ChildNodes Property

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)

Not applicable.

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 Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: