SiteMapNodeCollection::Clear Method ()
.NET Framework (current version)
Removes all items from the collection.
Assembly: System.Web (in System.Web.dll)
| 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
Available since 2.0
Show: