SiteMapNodeCollection.ReadOnly Method
.NET Framework 3.0
Returns a read-only collection that contains the nodes in the specified SiteMapNodeCollection collection.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public static SiteMapNodeCollection ReadOnly ( SiteMapNodeCollection collection )
public static function ReadOnly ( collection : SiteMapNodeCollection ) : SiteMapNodeCollection
Not applicable.
Parameters
- collection
The SiteMapNodeCollection that contains the SiteMapNode objects to add to the read-only SiteMapNodeCollection.
Return Value
A read-only SiteMapNodeCollection with the same SiteMapNode elements and structure as the original SiteMapNodeCollection.You can test whether a SiteMapNodeCollection collection is read-only by checking the IsReadOnly property. The IsFixedSize property also returns true when a SiteMapNodeCollection is read-only.
Notes to Implementers: A read-only SiteMapNodeCollection collection supports read and search operations, but does not support the Add, AddRange, Clear, Insert, Remove, and RemoveAt methods, nor the setter on the default indexer property, Item.Community Additions
ADD
Show: