SiteMapNodeCollection.RemoveAt(Int32) Method

Definition

Removes the SiteMapNode object at the specified index of the SiteMapNodeCollection collection.

C#
public virtual void RemoveAt(int index);

Parameters

index
Int32

The zero-based index of the element to remove.

Exceptions

index is less than zero.

-or-

index is greater than the Count.

The SiteMapNodeCollection is read-only.

-or-

The SiteMapNodeCollection has a fixed sized.

Remarks

You can test whether a SiteMapNodeCollection collection is read-only by checking the IsReadOnly property.

To remove an element from the SiteMapNodeCollection by specifying a SiteMapNode object to remove, use the Remove method.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also