PermissionRequestEvidence(PermissionSet, PermissionSet, PermissionSet) 构造函数

定义

用代码程序集的权限请求初始化 PermissionRequestEvidence 类的新实例。

public:
 PermissionRequestEvidence(System::Security::PermissionSet ^ request, System::Security::PermissionSet ^ optional, System::Security::PermissionSet ^ denied);
public PermissionRequestEvidence (System.Security.PermissionSet request, System.Security.PermissionSet optional, System.Security.PermissionSet denied);
new System.Security.Policy.PermissionRequestEvidence : System.Security.PermissionSet * System.Security.PermissionSet * System.Security.PermissionSet -> System.Security.Policy.PermissionRequestEvidence
Public Sub New (request As PermissionSet, optional As PermissionSet, denied As PermissionSet)

参数

request
PermissionSet

代码运行所需的最小权限。

optional
PermissionSet

(如果授予)代码可以使用的(但不是必需的)权限。

denied
PermissionSet

代码明确请求不要授予的权限。

注解

.NET Framework安全策略系统使用请求的权限以及代码程序集来确定Evidence应授予代码的权限。

适用于