PortalSiteMapProvider.CreateCustomSiteMapNode Method

Allows custom handling of any SPNavigationNode objects marked as "Custom".

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

Syntax

'Declaration
Public Overridable Function CreateCustomSiteMapNode ( _
    webNode As PortalWebSiteMapNode, _
    node As SPNavigationNode, _
    parentNode As PortalSiteMapNode _
) As PortalSiteMapNode
'Usage
Dim instance As PortalSiteMapProvider
Dim webNode As PortalWebSiteMapNode
Dim node As SPNavigationNode
Dim parentNode As PortalSiteMapNode
Dim returnValue As PortalSiteMapNode

returnValue = instance.CreateCustomSiteMapNode(webNode, _
    node, parentNode)
public virtual PortalSiteMapNode CreateCustomSiteMapNode(
    PortalWebSiteMapNode webNode,
    SPNavigationNode node,
    PortalSiteMapNode parentNode
)

Parameters

Return Value

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

Remarks

Microsoft Office SharePoint Server 2007 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.

See Also

Reference

PortalSiteMapProvider Class

PortalSiteMapProvider Members

Microsoft.SharePoint.Publishing.Navigation Namespace

PortalSiteMapProvider