SiteMapNodeCollection::AddRange Method (array<SiteMapNode^>^)
.NET Framework (current version)
Adds an array of type SiteMapNode to the collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- value
-
Type:
array<System.Web::SiteMapNode^>^
An array of type SiteMapNode to add to the current SiteMapNodeCollection.
| Exception | Condition |
|---|---|
| ArgumentException | value is null. |
| NotSupportedException | The SiteMapNodeCollection is read-only. |
The array that is passed to the AddRange method can contain null values; however, this leads to unexpected exceptions when the SiteMapNodeCollection collection is manipulated.
You cannot add a SiteMapNode object to a read-only or fixed-size SiteMapNodeCollection. You can test whether a SiteMapNodeCollection is read-only by checking the IsReadOnly property.
.NET Framework
Available since 2.0
Available since 2.0
Show: