语言

SiteMapNodeCollection.RemoveAt(Int32) 方法

定义

删除 SiteMapNode 集合的指定索引处的对象 SiteMapNodeCollection 。

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)

参数

index
Int32

要移除的元素的从零开始的索引。

例外

index 小于零。

-或-

index 大于 Count.

为 SiteMapNodeCollection 只读。

-或-

具有 SiteMapNodeCollection 固定大小。

注解

可以通过检查SiteMapNodeCollection属性来测试集合是否IsReadOnly为只读。

若要通过指定要SiteMapNodeCollection删除的对象从SiteMapNode中删除元素,请使用Remove该方法。

适用于

另请参阅