SiteMapNode.ParentNode Property
.NET Framework 3.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)
Not applicable.
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.
Community Additions
ADD
Show: