AssemblyCollection.Remove(String) Method

Definition

Removes a AssemblyInfo object from the AssemblyCollection collection.

C#
public void Remove(string key);

Parameters

key
String

A string value specifying the assembly reference.

Examples

The following code example demonstrates how to use the Remove method. This code example is part of a larger example provided for the AssemblyCollection class.

C#
// Remove an assembly.
configSection.Assemblies.Remove("MyAssembly, Version=1.0.0000.0, " +
  "Culture=neutral, Public KeyToken=b03f5f7f11d50a3a");

Remarks

If the assembly does not exist in the collection, the statement is ignored.

Applies to

Produkt Wersje
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1