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> 到位于指定索引位置的元素的配置文件中。