System.Web.SiteMapNodeCollection.Add Method

Adds a single System.Web.SiteMapNode object to the collection.

Syntax

public virtual int Add (SiteMapNode value)

Parameters

value
The System.Web.SiteMapNode to add to the System.Web.SiteMapNodeCollection.

Returns

The index of the CollectionBase.InnerList where the System.Web.SiteMapNode was inserted.

Remarks

You cannot add a System.Web.SiteMapNode object to a read-only or fixed-size System.Web.SiteMapNodeCollection collection. 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