ServiceModelConfigurationElementCollection<ConfigurationElementType>.RemoveAt 方法
定义
移除此集合中指定值处的配置元素。Removes the configuration element at the specified value in the collection.
重载
RemoveAt(Int32) |
移除此集合中指定索引处的配置元素。Removes the configuration element at the specified index of this collection. |
RemoveAt(Object) |
移除此集合中指定键处的配置元素。Removes the configuration element at the specified key of this collection. |
RemoveAt(Int32)
移除此集合中指定索引处的配置元素。Removes the configuration element at the specified index of this collection.
public:
void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
参数
- index
- Int32
要移除的配置元素的从零开始的索引。The zero-based index of the configuration element to remove.
例外
index
为 null
。index
is null
.
-和--and- 配置文件是只读的。The configuration file is read-only.
适用于
RemoveAt(Object)
移除此集合中指定键处的配置元素。Removes the configuration element at the specified key of this collection.
public:
void RemoveAt(System::Object ^ key);
public void RemoveAt (object key);
member this.RemoveAt : obj -> unit
Public Sub RemoveAt (key As Object)
参数
- key
- Object
要移除配置元素的指定键。The specified key of the configuration element to remove.
例外
key
为 null
。key
is null
.
-和--and- 配置文件是只读的。The configuration file is read-only.