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
- 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.
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.