SiteMapNodeCollection.RemoveAt(Int32) Methode
Definition
Entfernt das SiteMapNode-Objekt am angegebenen Index der Auflistung.Removes the SiteMapNode object at the specified index of the 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)
Parameter
- index
- Int32
Der nullbasierte Index des zu entfernenden Elements.The zero-based index of the element to remove.
Ausnahmen
index
ist kleiner als Null.index
is less than zero.
- oder --or-
index
ist größer als die Count.index
is greater than the Count.
SiteMapNodeCollection ist schreibgeschützt.The SiteMapNodeCollection is read-only.
- oder --or- Die SiteMapNodeCollection hat eine feste Größe.The SiteMapNodeCollection has a fixed sized.
Hinweise
Sie können testen, ob eine Auflistung schreibgeschützt SiteMapNodeCollection ist, indem Sie die-Eigenschaft überprüfen IsReadOnly .You can test whether a SiteMapNodeCollection collection is read-only by checking the IsReadOnly property.
Verwenden Sie die-Methode, um ein Element aus der SiteMapNodeCollection durch Angabe eines zu entfernende-Objekts zu entfernen SiteMapNode Remove .To remove an element from the SiteMapNodeCollection by specifying a SiteMapNode object to remove, use the Remove method.