System.Web.SiteMapNodeCollection.ReadOnly Method

Returns a read-only collection that contains the nodes in the specified System.Web.SiteMapNodeCollection collection.

Syntax

public static SiteMapNodeCollection ReadOnly (SiteMapNodeCollection collection)

Parameters

collection
The System.Web.SiteMapNodeCollection that contains the System.Web.SiteMapNode objects to add to the read-only System.Web.SiteMapNodeCollection.

Returns

A read-only System.Web.SiteMapNodeCollection with the same System.Web.SiteMapNode elements and structure as the original System.Web.SiteMapNodeCollection.

Remarks

You can test whether a System.Web.SiteMapNodeCollection collection is read-only by checking the SiteMapNodeCollection.IsReadOnly property. The SiteMapNodeCollection.IsFixedSize property also returns true when a System.Web.SiteMapNodeCollection is read-only.

Requirements

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