HostSecurityPolicyResolver.ResolvePolicy(Evidence) HostSecurityPolicyResolver.ResolvePolicy(Evidence) HostSecurityPolicyResolver.ResolvePolicy(Evidence) Method


Gets a value that indicates the security policy that should be applied to an assembly.

 virtual System::Web::Hosting::HostSecurityPolicyResults ResolvePolicy(System::Security::Policy::Evidence ^ evidence);
public virtual System.Web.Hosting.HostSecurityPolicyResults ResolvePolicy (System.Security.Policy.Evidence evidence);
abstract member ResolvePolicy : System.Security.Policy.Evidence -> System.Web.Hosting.HostSecurityPolicyResults
override this.ResolvePolicy : System.Security.Policy.Evidence -> System.Web.Hosting.HostSecurityPolicyResults


Evidence Evidence Evidence

A collection of evidence about an assembly and a host, which is used as an input to security policy.


A 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.

Applies to