AssemblyCollection.RemoveAt(Int32) 方法

定義

從集合中移除一個 AssemblyInfo 物件 AssemblyCollection

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

參數

index
Int32

一個整數值,指定集合中的AssemblyInfo一個AssemblyCollection物件。

範例

以下程式碼範例示範如何使用此 RemoveAt 方法。 此程式碼範例是本類別更大範例 AssemblyCollection 的一部分。

// Remove an assembly.
configSection.Assemblies.RemoveAt(configSection.Assemblies.Count - 1);
' Remove an assembly.
configSection.Assemblies.RemoveAt(configSection.Assemblies.Count - 1)

備註

若集合中不存在該組合,則拋出超出範圍的例外。

適用於