System.Security.Policy.Evidence

EvidenceExtensionMethods provides several extension methods for the System.Security.Policy.Evidence class. This type is in the Security.Policy namespace (not the System.Security.Policy namespace), so in order to use these extension methods, you will need to make sure you include this namespace as well as a reference to Security.dll.

APIs

T GetAssemblyEvidence<T>()

Get the first evidence object of type T supplied by the assembly that the Evidence collection is for.

Generic Parameters:
T Type of assembly evidence that should be obtained.


Return Value:
The first evidence object of type T that is in the assembly supplied evidence, or null if the assembly has not supplied any evidence of type T .

T GetHostEvidence<T>()

Get the first evidence object of type T supplied by the host in the Evidence collection.

Generic Parameters:
T Type of host evidence that should be obtained.


Return Value:
The first evidence object of type T that is in the host supplied evidence, or null if the host has not supplied any evidence of type T .

Last edited Jun 3, 2009 at 8:31 PM by shawnfa, version 2

Comments

No comments yet.