Evidence.AddAssembly Method (Object)
.NET Framework (current version)
Note: This API is now obsolete. Namespace:
Adds the specified assembly evidence to the evidence set.
mscorlib (in mscorlib.dll)
[ObsoleteAttribute("This method is obsolete. Please use AddAssemblyEvidence instead.")]
public void AddAssembly(
Use this method for evidence derived from the assembly.
This method does not perform a check to prevent adding duplicate types of evidence. Many assembly evidence objects can exist at the same time.
The following code example shows the use of the AddAssembly method. This example is part of a larger example provided for the Evidence class.
Console.WriteLine("Adding assembly evidence.");
Console.WriteLine("Count of evidence items = " + myEvidence.Count.ToString());
Return to top
Available since 1.1