Add Host Evidence<T>(T) Method
Adds host evidence of the specified type to the host evidence collection.
public: generic <typename T> where T : System::Security::Policy::EvidenceBase void AddHostEvidence(T evidence);
public void AddHostEvidence<T> (T evidence) where T : System.Security.Policy.EvidenceBase;
[System.Runtime.InteropServices.ComVisible(false)] public void AddHostEvidence<T> (T evidence) where T : System.Security.Policy.EvidenceBase;
member this.AddHostEvidence : 'T -> unit (requires 'T :> System.Security.Policy.EvidenceBase)
Public Sub AddHostEvidence(Of T As EvidenceBase) (evidence As T)
The type of the object in
The host evidence to add.
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.