System.Web.SiteMapNodeCollection.AddRange Method

Adds the nodes in the specified System.Web.SiteMapNodeCollection to the current collection.

Syntax

public virtual void AddRange (SiteMapNodeCollection value)

Parameters

value
A System.Web.SiteMapNodeCollection that contains the System.Web.SiteMapNode objects to add to the current System.Web.SiteMapNodeCollection.

Remarks

The System.Web.SiteMapNodeCollection collection that is passed to the SiteMapNodeCollection.AddRange(SiteMapNodeCollection) method can contain null System.Web.SiteMapNode objects; however, this leads to unexpected exceptions when the System.Web.SiteMapNodeCollection is manipulated.

You cannot add a System.Web.SiteMapNode object to a read-only or fixed-size System.Web.SiteMapNodeCollection. You can test whether a System.Web.SiteMapNodeCollection is read-only by checking the SiteMapNodeCollection.IsReadOnly property.

Requirements

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