Evidence.GetHostEvidence<T> Method ()

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets host evidence of the specified type from the collection.

Namespace:   System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

[ComVisibleAttribute(false)]
public T GetHostEvidence<T>()
where T : EvidenceBase

Return Value

Type: T

Evidence of type T in the host evidence collection.

Type Parameters

T

The type of the evidence to get.

This method returns only evidence that is derived from the EvidenceBase class. It does not return legacy evidence objects that are derived from other classes.

.NET Framework
Available since 4.0
Return to top
Show: