Evidence::AddAssembly Method (Object^)
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Return to top
Adds the specified assembly evidence to the evidence set.
Assembly: mscorlib (in mscorlib.dll)
public: [ObsoleteAttribute("This method is obsolete. Please use AddAssemblyEvidence instead.")] void AddAssembly( Object^ id )
Parameters
- id
-
Type:
System::Object^
Any evidence object.
| Exception | Condition |
|---|---|
| ArgumentNullException | id is null. |
| ArgumentException | id is not serializable. |
Use this method for evidence derived from the assembly.
Note |
|---|
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.
.NET Framework
Available since 1.1
Available since 1.1
Show:
