ConfigurationElementCollection.BaseRemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
拿掉位於指定索引位置的 ConfigurationElement。
protected public:
void BaseRemoveAt(int index);
protected:
void BaseRemoveAt(int index);
protected internal void BaseRemoveAt(int index);
protected void BaseRemoveAt(int index);
member this.BaseRemoveAt : int -> unit
Protected Friend Sub BaseRemoveAt (index As Integer)
Protected Sub BaseRemoveAt (index As Integer)
參數
- index
- Int32
要移除的索引位置 ConfigurationElement 。
例外狀況
組態是唯讀的。
-或-
index 小 0 於或大於集合中物件的數量 ConfigurationElement 。
-或-
該 ConfigurationElement 物體已被移除。
-或-
物件的 ConfigurationElement 價值被鎖定在更高的層級。
-或-
該 ConfigurationElement 物品是繼承而來的。
-或-
物件的ConfigurationElement值Type不是 AddRemoveClearMap 或 AddRemoveClearMapAlternate。
備註
此 BaseRemoveAt 方法會在 <remove> 指定的索引位置插入元素的指令。