語言

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方法。

適用於

另請參閱