HostSecurityPolicyResolver.ResolvePolicy(Evidence) 方法

定义

获取一个值,该值指示应向程序集应用的安全策略。

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

参数

evidence
Evidence

有关程序集和宿主的证据集合,该证据用作安全策略的输入。

返回

HostSecurityPolicyResults

一个值,该值指示应向程序集应用的安全权限类型。

注解

如果从 HostSecurityPolicyResolver 类继承,则必须实现 ResolvePolicy 该方法。 根据参数中 evidence 提供的信息,该方法应返回枚举中 HostSecurityPolicyResults 定义的安全策略之一。

适用于