System.Web.SiteMapNodeCollection Members

The members of System.Web.SiteMapNodeCollection are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.SiteMapNodeCollection class, which is the default instance.

Initializes a new instance of the System.Web.SiteMapNodeCollection class with the specified initial capacity.

Initializes a new instance of the System.Web.SiteMapNodeCollection class and adds the System.Web.SiteMapNode object to the CollectionBase.InnerList property for the collection.

Initializes a new instance of the System.Web.SiteMapNodeCollection class and adds the array of type System.Web.SiteMapNode to the CollectionBase.InnerList property for the collection.

Initializes a new instance of the System.Web.SiteMapNodeCollection class and adds all the list items of the specified System.Web.SiteMapNodeCollection collection to the CollectionBase.InnerList property for the collection.

Public Properties

[read-only]
Countint.

Gets the number of elements contained in the collection.

[read-only]
IsFixedSizebool.

Gets a Boolean value indicating whether nodes can be added to or subtracted from the collection.

[read-only]
IsReadOnlybool.

Gets a Boolean value indicating whether the collection is read-only.

[read-only]
IsSynchronizedbool.

Gets a Boolean value indicating whether access to the collection is synchronized (thread safe).

default property
Item(int)SiteMapNode. Documentation for this section has not yet been entered.
[read-only]
SyncRootobject.

Gets an object that can be used to synchronize access to the collection.

Public Methods

Add(SiteMapNode) : int

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

AddRange(SiteMapNode[])

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

AddRange(SiteMapNodeCollection)

Adds the nodes in the specified System.Web.SiteMapNodeCollection to the current collection.

Clear()

Removes all items from the collection.

Contains(SiteMapNode) : bool

Determines whether the collection contains a specific System.Web.SiteMapNode object.

CopyTo(SiteMapNode[], int)

Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.

GetDataSourceView(System.Web.UI.WebControls.SiteMapDataSource, string) : System.Web.UI.WebControls.SiteMapDataSourceView

Retrieves the System.Web.UI.WebControls.SiteMapDataSourceView object that is associated with the nodes in the current collection.

GetEnumerator() : IEnumerator

Retrieves a reference to an enumerator object, which is used to iterate over the collection.

GetHierarchicalDataSourceView() : System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView

Retrieves the System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView object that is associated with the nodes in the current collection.

GetHierarchyData(object) : System.Web.UI.IHierarchyData

Returns a hierarchical data item for the specified enumerated item.

IndexOf(SiteMapNode) : int

Searches for the specified System.Web.SiteMapNode object, and then returns the zero-based index of the first occurrence within the entire collection.

Insert(int, SiteMapNode)

Inserts the specified System.Web.SiteMapNode object into the collection at the specified index.

static
ReadOnly(SiteMapNodeCollection) : SiteMapNodeCollection

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

Remove(SiteMapNode)

Removes the specified System.Web.SiteMapNode object from the collection.

RemoveAt(int)

Removes the System.Web.SiteMapNode object at the specified index of the collection.

Protected Methods

OnValidate(object)

Performs additional custom processes when validating a value.

Explicitly Implemented Interface Members

IList.Add

Adds an item to the collection in the IList interface. For a description of this member, see IList.Add(object).

IList.Clear

Removes all items from the collection in the IList interface. For a description of this member, see IList.Clear.

IList.Contains

Determines whether the collection in the IList interface contains the specified Boolean value.

ICollection.CopyTo

Copies the elements of the ICollection interface to an array, starting at a particular array index. This class cannot be inherited.

[read-only]
ICollection.Countint.

Gets the number of elements that are contained in the ICollection interface. This class cannot be inherited.

IEnumerable.GetEnumerator

Returns an enumerator that iterates through a collection. For a description of this member, see IEnumerable.GetEnumerator.

System.Web.UI.IHierarchicalEnumerable.GetHierarchyData

Returns a hierarchical data item for the specified enumerated item. For a description of this member, see System.Web.UI.IHierarchicalEnumerable.GetHierarchyData(object).

IList.IndexOf

Determines the index of the specific item in the collection that is returned by the IList interface. For a description of this member, see IList.IndexOf(object).

IList.Insert

Inserts an item into the collection in the IList interface at the specified index. For a description of this member, see IList.Insert(int, object).

[read-only]
IList.IsFixedSizebool.

Gets a Boolean value indicating whether the collection has a fixed size. For a description of this member, see IList.IsFixedSize.

[read-only]
IList.IsReadOnlybool.

Gets a Boolean value indicating whether the collection is read-only. For a description of this member, see IList.IsReadOnly.

[read-only]
ICollection.IsSynchronizedbool.

Gets a Boolean value indicating whether access to the ICollection interface is synchronized (thread safe). This class cannot be inherited.

IList.Itemobject. Documentation for this section has not yet been entered.
IList.Remove

Removes the first occurrence of a specified object from the collection in the IList interface. For a description of this member, see IList.Remove(object).

IList.RemoveAt

Removes the IList item at the specified index. For a description of this member, see IList.RemoveAt(int).

[read-only]
ICollection.SyncRootobject.

Gets an object that can be used to synchronize access to the ICollection interface. This class cannot be inherited.