System.Web.StaticSiteMapProvider.Clear Method

Removes all elements in the collections of child and parent site map nodes that the System.Web.StaticSiteMapProvider tracks as part of its state.

Syntax

protected virtual void Clear ()

Remarks

Classes that are derived from the System.Web.StaticSiteMapProvider class can override the StaticSiteMapProvider.Clear method to perform additional cleanup, depending on what state the derived classes maintain.

The StaticSiteMapProvider.Clear method does not reset state that is initialized during the System.Configuration.Provider.ProviderBase.Initialize(string, System.Collections.Specialized.NameValueCollection) method—it resets only state that is initialized during the StaticSiteMapProvider.BuildSiteMap method.

Requirements

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