SiteMapNode.ParentNode Property
.NET Framework 2.0
Note: This property is new in the .NET Framework version 2.0.
Gets or sets the SiteMapNode object that is the parent of the current node.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: virtual property SiteMapNode^ ParentNode { SiteMapNode^ get (); void set (SiteMapNode^ value); }
/** @property */ public SiteMapNode get_ParentNode () /** @property */ public void set_ParentNode (SiteMapNode value)
public function get ParentNode () : SiteMapNode public function set ParentNode (value : SiteMapNode)
Property Value
The parent SiteMapNode; otherwise, a null reference (Nothing in Visual Basic), if security trimming is enabled and the user cannot view the parent node.The SiteMapNode class relies on the site map provider with which it is associated to track its relationships to other nodes in the site map. The ParentNode property calls the GetParentNode method, passing a reference to itself, to retrieve the parent SiteMapNode.
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.
Community Additions
ADD
Show: