Evidence::AddHostEvidence<T> Method (T)
.NET Framework (current version)
Adds host evidence of the specified type to the host evidence collection.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | evidence is null. |
| InvalidOperationException | Evidence of type T is already in the list. |
Legacy evidence, that is, evidence that is not derived from EvidenceBase, cannot be added. Only evidence that is derived from EvidenceBase can be added. This method does not allow you to add evidence if evidence of that type already exists in the assembly list.
.NET Framework
Available since 4.0
Available since 4.0
Show: