SecurityCriticalScope SecurityCriticalScope SecurityCriticalScope SecurityCriticalScope Enum

定义

警告

此 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
继承
SecurityCriticalScopeSecurityCriticalScopeSecurityCriticalScopeSecurityCriticalScope
属性

字段

Everything Everything Everything Everything 1

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

Explicit Explicit Explicit 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.

适用于