System.Web.XmlSiteMapProvider.AddProvider Method

Links a child site map provider to the current provider.

Syntax

protected virtual void AddProvider (string providerName, SiteMapNode parentNode)

Parameters

providerName
The name of one of the System.Web.SiteMapProvider objects currently registered in the SiteMap.Providers.
parentNode
A site map node of the current site map provider under which the root node and all nodes of the child provider is added.

Remarks

The XmlSiteMapProvider.AddProvider(string, SiteMapNode) method links providerName to the current provider as a child of the current provider. The root node of providerName is added to the hierarchy for the current provider as a child node of parentNode. Because the parent provider calls the XmlSiteMapProvider.BuildSiteMap method on providerName, the exceptions that are described in the XmlSiteMapProvider.BuildSiteMap method might be thrown.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0