Editar

Compartilhar via


SiteMapNodeCollection.RemoveAt(Int32) Method

Definition

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

public:
 virtual void RemoveAt(int index);
public virtual void RemoveAt (int index);
abstract member RemoveAt : int -> unit
override this.RemoveAt : int -> unit
Public Overridable Sub RemoveAt (index As Integer)

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

See also