HostSecurityManager.ResolvePolicy(Evidence) 方法

定义

注意

现已弃用此 API。

根据指定的证据确定向代码授予什么权限。

public:
 virtual System::Security::PermissionSet ^ ResolvePolicy(System::Security::Policy::Evidence ^ evidence);
[System.Obsolete]
public virtual System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
public virtual System.Security.PermissionSet ResolvePolicy (System.Security.Policy.Evidence evidence);
[<System.Obsolete>]
abstract member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
override this.ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
abstract member ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
override this.ResolvePolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
Public Overridable Function ResolvePolicy (evidence As Evidence) As PermissionSet

参数

evidence
Evidence

用于评估策略的证据集。

返回

可由安全系统授予的权限集。

属性

例外

evidencenull

注解

此方法调用安全策略引擎,为其提供指定的证据。 结果由安全策略决定。

适用于