SiteMapNodeCollection::AddRange Method (array<SiteMapNode^>^)

 

Adds an array of type SiteMapNode to the collection.

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

public:
virtual void AddRange(
	array<SiteMapNode^>^ value
)

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
Return to top
Show: