ConfigurationPermission(PermissionState) 构造函数

定义

初始化 ConfigurationPermission 类的新实例。

public:
 ConfigurationPermission(System::Security::Permissions::PermissionState state);
public ConfigurationPermission (System.Security.Permissions.PermissionState state);
new System.Configuration.ConfigurationPermission : System.Security.Permissions.PermissionState -> System.Configuration.ConfigurationPermission
Public Sub New (state As PermissionState)

参数

state
PermissionState

要授予的权限级别。

例外

state 的值不是 Unrestricted,也不是 None

适用于