Share via


SPSiteMapProvider.GetParentNode method

Retrieves the parent node of a specified SiteMapNode object.

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

Syntax

'Declaration
Public Overrides Function GetParentNode ( _
    node As SiteMapNode _
) As SiteMapNode
'Usage
Dim instance As SPSiteMapProvider
Dim node As SiteMapNode
Dim returnValue As SiteMapNode

returnValue = instance.GetParentNode(node)
public override SiteMapNode GetParentNode(
    SiteMapNode node
)

Parameters

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.

Remarks

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.

See also

Reference

SPSiteMapProvider class

SPSiteMapProvider members

Microsoft.SharePoint.Navigation namespace

System.Web.SiteMapNode

Microsoft.SharePoint.Navigation.SPContentMapProvider