HostSecurityPolicyResolver.ResolvePolicy Method (Evidence)
.NET Framework (current version)
Gets a value that indicates the security policy that should be applied to an assembly.
Assembly: System.Web (in System.Web.dll)
abstract ResolvePolicy : evidence:Evidence -> HostSecurityPolicyResults override ResolvePolicy : evidence:Evidence -> HostSecurityPolicyResults
Parameters
- evidence
-
Type:
System.Security.Policy.Evidence
A collection of evidence about an assembly and a host, which is used as an input to security policy.
Return Value
Type: System.Web.Hosting.HostSecurityPolicyResultsA value that indicates the type of security permissions should be applied to an assembly.
If you inherit from the HostSecurityPolicyResolver class, you must implement the ResolvePolicy method. Based on the information that is provided in the evidence parameter, the method should return one of the security policies that are defined in the HostSecurityPolicyResults enumeration.
.NET Framework
Available since 4.0
Available since 4.0
Show: