System.Web.XmlSiteMapProvider.Dispose Method

Notifies the file monitor of the Web.sitemap file that the System.Web.XmlSiteMapProvider object no longer requires the file to be monitored. The XmlSiteMapProvider.Dispose(bool) method takes a Boolean parameter indicating whether the method is called by user code.

Syntax

protected virtual void Dispose (bool disposing)

Parameters

disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

The XmlSiteMapProvider.Dispose(bool) method returns true if the XmlSiteMapProvider.Dispose(bool) method is called by user code. Otherwise it returns false, if the XmlSiteMapProvider.Dispose(bool) method is called by the finalizer thread during run time.

Requirements

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