AddRange Method (SiteMapNode[])
Collapse the table of content
Expand the table of content

SiteMapNodeCollection.AddRange Method (SiteMapNode[])


Adds an array of type SiteMapNode to the collection.

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

public virtual void AddRange(
	SiteMapNode[] value


Type: System.Web.SiteMapNode[]

An array of type SiteMapNode to add to the current SiteMapNodeCollection.

Exception Condition

value is null.


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
Return to top
© 2016 Microsoft