Bewerken

Delen via


HostSecurityPolicyResolver.ResolvePolicy(Evidence) Method

Definition

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

public:
 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
Public Overridable Function ResolvePolicy (evidence As Evidence) As HostSecurityPolicyResults

Parameters

evidence
Evidence

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

Returns

A value that indicates the type of security permissions should be applied to an assembly.

Remarks

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