SecurityManager.ResolveSystemPolicy(Evidence) 方法

定义

注意

现已弃用此 API。

注意

This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.

根据指定的证据确定授予代码的权限,不包括 AppDomain 级别的策略。

public:
 static System::Security::PermissionSet ^ ResolveSystemPolicy(System::Security::Policy::Evidence ^ evidence);
[System.Obsolete]
public static System.Security.PermissionSet ResolveSystemPolicy (System.Security.Policy.Evidence evidence);
public static System.Security.PermissionSet ResolveSystemPolicy (System.Security.Policy.Evidence evidence);
[System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")]
public static System.Security.PermissionSet ResolveSystemPolicy (System.Security.Policy.Evidence evidence);
[<System.Obsolete>]
static member ResolveSystemPolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
static member ResolveSystemPolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
[<System.Obsolete("This method is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.")>]
static member ResolveSystemPolicy : System.Security.Policy.Evidence -> System.Security.PermissionSet
Public Shared Function ResolveSystemPolicy (evidence As Evidence) As PermissionSet

参数

evidence
Evidence

用于评估策略的证据集。

返回

PermissionSet

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

属性

例外

此方法使用代码访问安全性 (CAS) 策略,该策略在 .NET Framework 4 中已过时。 若要使 CAS 策略与早期版本的 .NET Framework 兼容,请使用 <legacyCasPolicy> 元素

注解

此方法调用安全策略引擎,并为其提供调用代码标识的证据。 结果由系统安全策略确定,该策略不排除任何 AppDomain 策略。

适用于