Skip to main content
Tab

UnboundSiteMapProviderBase.GetParentNode(SiteMapNode) Method

Retrieves the parent node of a specific site map node object.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public override SiteMapNode GetParentNode(
    SiteMapNode childNode
)

Parameters

Name Type Description
childNode SiteMapNode

The SiteMapNode for which to retrieve the parent site map node.

Returns

Type Description
SiteMapNode

A SiteMapNode that represents the parent of the specified site map node; otherwise, a null reference (Nothing in Visual Basic), if no parent site map node exists or the user is not permitted to see the parent site map node.

Remarks

The GetParentNode method can be used to obtain a SiteMapNode object that represents the parent of the specified site map node. If security trimming is enabled, the site map node is returned only if the user is permitted to see it.

See Also