Share via


SPXmlContentMapProvider.Initialize Method

Initializes the SPXmlContentMapProvider object and provides resources used to load site-map data from persistent storage.

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

Syntax

'Declaration
Public Overrides Sub Initialize ( _
    name As String, _
    attributes As NameValueCollection _
)
'Usage
Dim instance As SPXmlContentMapProvider
Dim name As String
Dim attributes As NameValueCollection

instance.Initialize(name, attributes)
public override void Initialize(
    string name,
    NameValueCollection attributes
)

Parameters

  • name
    Type: System.String

    The name of the content-map provider to initialize.

Remarks

This method is identical to the SPContentMapProvider method except it also initializes the PathToSiteMapFile parameter if siteMapFile<italics> attributes are present in the web.sitemap file. This method does not actually build a site map; instead, it prepares the SPXmlContentMapProvider object to do it.

See Also

Reference

SPXmlContentMapProvider Class

SPXmlContentMapProvider Members

Microsoft.SharePoint.Navigation Namespace

Initialize

NameValueCollection