System.Web.SiteMapNodeCollection.AddRange Method

Adds an array of type System.Web.SiteMapNode to the collection.

Syntax

public virtual void AddRange (SiteMapNode[] value)

Parameters

value
An array of type System.Web.SiteMapNode to add to the current System.Web.SiteMapNodeCollection.

Remarks

The array that is passed to the SiteMapNodeCollection.AddRange(SiteMapNode[]) method can contain null values; however, this leads to unexpected exceptions when the System.Web.SiteMapNodeCollection collection 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