ServiceModelConfigurationElementCollection<ConfigurationElementType>.RemoveAt 方法

定義

移除此集合中指定之值的組態項目。

多載

RemoveAt(Int32)

移除此集合中指定索引處的組態項目。

RemoveAt(Object)

移除此集合中指定之索引鍵的組態項目。

RemoveAt(Int32)

移除此集合中指定索引處的組態項目。

public:
 void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

參數

index
Int32

要移除之組態項目的以零起始的索引。

例外狀況

indexnull

-和- 組態檔是唯讀的。

適用於

RemoveAt(Object)

移除此集合中指定之索引鍵的組態項目。

public:
 void RemoveAt(System::Object ^ key);
public void RemoveAt (object key);
member this.RemoveAt : obj -> unit
Public Sub RemoveAt (key As Object)

參數

key
Object

要移除的組態項目之指定的索引鍵。

例外狀況

keynull

-和- 組態檔是唯讀的。

適用於