System.Web.SiteMapNodeCollection.Clear Method

Removes all items from the collection.

Syntax

public virtual void Clear ()

Remarks

You can test whether a System.Web.SiteMapNodeCollection collection is read-only by checking the SiteMapNodeCollection.IsReadOnly property.

To remove specific elements of the System.Web.SiteMapNodeCollection, use the SiteMapNodeCollection.Remove(SiteMapNode) or SiteMapNodeCollection.RemoveAt(int) method.

Requirements

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