Share via


SPXmlContentMapProvider.BuildSiteMap Method

Loads the site map information from an XML file and builds it in memory.

Namespace:  Microsoft.SharePoint.Navigation
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Function BuildSiteMap As SiteMapNode
'Usage
Dim instance As SPXmlContentMapProvider
Dim returnValue As SiteMapNode

returnValue = instance.BuildSiteMap()
public override SiteMapNode BuildSiteMap()

Return Value

Type: System.Web.SiteMapNode
Returns a SiteMapNode object.

Exceptions

Exception Condition
ConfigurationException

Error loading the Web configuration file.

Remarks

This method loads and builds the site map navigation structure from persistent storage. It utilizes the site map root SiteMapNode. When the site map provider parses the Url property from a site map file, it converts application-relative URLs, as well as relative URLs, to application-absolute virtual paths.

See Also

Reference

SPXmlContentMapProvider Class

SPXmlContentMapProvider Members

Microsoft.SharePoint.Navigation Namespace

BuildSiteMap