ConfigurationElementCollection.BaseRemoveAt(Int32) 方法

定義

移除在指定之索引位置的 ConfigurationElement

protected:
 void BaseRemoveAt(int index);
protected public:
 void BaseRemoveAt(int index);
protected void BaseRemoveAt (int index);
protected internal void BaseRemoveAt (int index);
member this.BaseRemoveAt : int -> unit
Protected Sub BaseRemoveAt (index As Integer)
Protected Friend Sub BaseRemoveAt (index As Integer)

參數

index
Int32

要移除之 ConfigurationElement 的索引位置。

例外狀況

此組態是唯讀的。

-或-

index 小於 0 或大於集合中的 ConfigurationElement 物件數目。

-或-

已經移除 ConfigurationElement 物件。

-或-

ConfigurationElement 物件的值已經在較高的層級上鎖定。

-或-

已繼承 ConfigurationElement 物件。

-或-

ConfigurationElement 物件之 Type 的值不是 AddRemoveClearMapAddRemoveClearMapAlternate

備註

方法 BaseRemoveAt 會將 <remove> 指示詞插入至位於指定索引位置之 專案的組態檔中。

適用於