PolicyLevelType 枚举

定义

指定托管代码策略级别的类型。Specifies the type of a managed code policy level.

public enum class PolicyLevelType
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public enum PolicyLevelType
type PolicyLevelType = 
Public Enum PolicyLevelType
继承
PolicyLevelType
属性

字段

AppDomain 3

应用程序中所有托管代码的安全策略。Security policy for all managed code in an application.

Enterprise 2

企业中所有托管代码的安全策略。Security policy for all managed code in an enterprise.

Machine 1

运行于计算机上的所有托管代码的安全策略。Security policy for all managed code that is run on the computer.

User 0

由用户运行的所有托管代码的安全策略。Security policy for all managed code that is run by the user.

注解

安全策略的最高级别是企业范围内的。The highest level of security policy is enterprise-wide. 层次结构的后续较低级别表示进一步的策略限制, 但绝不能授予比更高级别允许的权限更多的权限。Successive lower levels of hierarchy represent further policy restrictions, but can never grant more permissions than allowed by higher levels. 以下是策略级别的顺序。The policy levels in order are the following.

  1. 企业Enterprise

  2. 计算机Machine

  3. 用户User

  4. 应用程序域Application domain

适用于

另请参阅