SPSiteMapProvider.GetParentNode method

Retrieves the parent node of a specified SiteMapNode object.

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public override SiteMapNode GetParentNode(
	SiteMapNode node


Type: System.Web.SiteMapNode

The SiteMapNode instance for which to retrieve the parent node.

Return value

Type: System.Web.SiteMapNode
Returns a SiteMapNode instance that represents the parent of node; otherwise returns a null reference if the object has no parent or if security trimming is enabled and the parent node is not accessible to the current user.

The parent node represents the next-nearest ancestor Web site that has its UseShared property set to False, unless the provider is returning parent nodes for the SPContentMapProvider object. The SPContentMapProvider object provides the SiteMapNode instance that constitutes the content for the local breadcrumb.