语言

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)

注解

如果集合中不存在程序集,则会引发范围外异常。

适用于