XmlSiteMapProvider::RemoveProvider Method (String^)

 

Removes a linked child site map provider from the hierarchy for the current provider.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

protected:
virtual void RemoveProvider(
	String^ providerName
)

Parameters

providerName
Type: System::String^

The name of one of the SiteMapProvider objects currently registered in the Providers.

Exception Condition
ProviderException

providerName cannot be resolved.

InvalidOperationException

providerName is not a registered child provider of the current site map provider.

ArgumentNullException

providerName is null.

The RemoveProvider method removes providerName from the hierarchy for the current provider, including any parent/child relationships that are established by the AddProvider method between site map nodes of the current provider and the removed provider.

.NET Framework
Available since 2.0
Return to top
Show: