Links a child site map provider to the current provider.
Assembly: System.Web (in System.Web.dll)
'Declaration Protected Overridable Sub AddProvider ( _ providerName As String, _ parentNode As SiteMapNode _ )
The Provider property of the parentNode does not reference the current provider.
parentNode is Nothing.
providerName cannot be resolved.
The site map file used by providerName is already in use within the provider hierarchy.
The root node returned by providerName is Nothing.
The root node returned by providerName has a URL or key that is already registered with the parent XmlSiteMapProvider.
The 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 BuildSiteMap method on providerName, the exceptions that are described in the BuildSiteMap method might be thrown.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.