SecurityCriticalScope 枚举

定义

警告

此 API 现已过时。

指定 SecurityCriticalAttribute 的范围。Specifies the scope of a SecurityCriticalAttribute.

public enum class SecurityCriticalScope
[System.Obsolete("SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.")]
public enum SecurityCriticalScope
type SecurityCriticalScope = 
Public Enum SecurityCriticalScope
继承
SecurityCriticalScope
属性

字段

Everything 1

该特性应用于其后的所有代码。The attribute applies to all code that follows it.

Explicit 0

该特性仅应用于直接目标。The attribute applies only to the immediate target.

注解

安全关键代码是可通过执行必要的权限提升操作来保护敏感资源并向不受信任或部分信任的代码公开对资源的中转访问的任何代码。Security-critical code is any code that protects sensitive resources and exposes brokered access to the resource to untrusted or partially trusted code by performing the necessary elevation of privilege operations.

适用于