SiteMapNodeCollection::Clear Method ()

 

Removes all items from the collection.

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

public:
virtual void Clear()

Exception Condition
NotSupportedException

The SiteMapNodeCollection is read-only.

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

To remove specific elements of the SiteMapNodeCollection, use the Remove or RemoveAt method.

.NET Framework
Available since 2.0
Return to top
Show: