Export (0) Print
Expand All

PortalSiteMapProvider.CreateCustomSiteMapNode method

Enables custom handling of any SPNavigationNode objects marked as Custom.

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

public virtual PortalSiteMapNode CreateCustomSiteMapNode(
	PortalWebSiteMapNode webNode,
	SPNavigationNode node,
	PortalSiteMapNode parentNode
)

Parameters

webNode
Type: Microsoft.SharePoint.Publishing.Navigation.PortalWebSiteMapNode

PortalWebSiteMapNode object that represents the Web site containing the SPNavigationNode object.

node
Type: Microsoft.SharePoint.Navigation.SPNavigationNode

SPNavigationNode object marked as a custom node.

parentNode
Type: Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNode

PortalSiteMapNode object that is this node's parent in navigation.

Return value

Type: Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapNode
The PortalSiteMapNode object that represents the custom SPNavigationNode object.

SharePoint Server 2010 calls this method when it encounters an SPNavigationNode object with a NodeType property value set to Custom.

When overridden in a derived class, you can create and return a custom PortalSiteMapNode object or an object derived from a PortalSiteMapNode object.

Show:
© 2015 Microsoft