AssemblyCollection.RemoveAt(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从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)
注解
如果集合中不存在程序集,则会引发范围外异常。