System.Security Namespace

System.Security 命名空间提供公共语言运行时安全系统的基础结构,包括权限的基类。 The System.Security namespace provides the underlying structure of the common language runtime security system, including base classes for permissions.

AllowPartiallyTrustedCallersAttribute

允许由部分信任的代码调用程序集。 Allows an assembly to be called by partially trusted code. 如果没有此声明,则只有完全信任的调用方才可以使用此程序集。 Without this declaration, only fully trusted callers are able to use the assembly. 此类不能被继承。 This class cannot be inherited.

CodeAccessPermission

定义所有代码访问权限的基础结构。 Defines the underlying structure of all code access permissions.

HostProtectionException

检测到被拒绝的主机资源时引发的异常。 The exception that is thrown when a denied host resource is detected.

HostSecurityManager

允许控制和自定义应用程序域的安全行为。 Allows the control and customization of security behavior for application domains.

NamedPermissionSet

定义具有名称以及相关说明的权限集。 Defines a permission set that has a name and description associated with it. 此类不能被继承。 This class cannot be inherited.

PermissionSet

表示可以包含许多不同类型的权限的集合。 Represents a collection that can contain many different types of permissions.

ReadOnlyPermissionSet

表示可以包含许多不同类型权限的只读集合。 Represents a read-only collection that can contain many different types of permissions.

SecureString

表示应保密的文本,例如在不再需要时将其从计算机内存中删除。 Represents text that should be kept confidential, such as by deleting it from computer memory when no longer needed. 此类不能被继承。 This class cannot be inherited.

SecureStringMarshal

提供用于分配非托管内存和复制非托管内存块的方法的集合。 Provides a collection of methods for allocating unmanaged memory and copying unmanaged memory blocks.

SecurityContext

封装并传播在线程间传输的执行上下文的所有安全相关数据。 Encapsulates and propagates all security-related data for execution contexts transferred across threads. 此类不能被继承。 This class cannot be inherited.

SecurityCriticalAttribute

指定代码或程序集执行安全关键操作。 Specifies that code or an assembly performs security-critical operations.

SecurityElement

表示用于对安全对象进行编码的 XML 对象模型。 Represents the XML object model for encoding security objects. 此类不能被继承。 This class cannot be inherited.

SecurityException

检测到安全错误时引发的异常。 The exception that is thrown when a security error is detected.

SecurityManager

对与安全系统交互的类提供主访问点。 Provides the main access point for classes interacting with the security system. 此类不能被继承。 This class cannot be inherited.

SecurityRulesAttribute

指示公共语言运行时应该对程序集强制的一组安全规则。 Indicates the set of security rules the common language runtime should enforce for an assembly.

SecuritySafeCriticalAttribute

将类型或成员标识为透明代码可以安全访问的安全关键类型或成员。 Identifies types or members as security-critical and safely accessible by transparent code.

SecurityState

提供一个基类,用于从 AppDomainManager 对象中请求操作的安全状态。 Provides a base class for requesting the security status of an action from the AppDomainManager object.

SecurityTransparentAttribute

指示程序集不能导致特权提升。 Specifies that an assembly cannot cause an elevation of privilege.

SecurityTreatAsSafeAttribute

标识哪些非公共 SecurityCriticalAttribute 成员可由程序集中的透明代码访问。 Identifies which of the nonpublic SecurityCriticalAttribute members are accessible by transparent code within the assembly.

SuppressUnmanagedCodeSecurityAttribute

允许托管代码在不进行堆栈审核的情况下调用到非托管代码。 Allows managed code to call into unmanaged code without a stack walk. 此类不能被继承。 This class cannot be inherited.

UnverifiableCodeAttribute

标记包含无法验证的代码的模块。 Marks modules containing unverifiable code. 此类不能被继承。 This class cannot be inherited.

VerificationException

当安全策略要求代码是类型安全的但验证过程无法验证该代码是否是类型安全的时引发的异常。 The exception that is thrown when the security policy requires code to be type safe and the verification process is unable to verify that the code is type safe.

XmlSyntaxException

在 XML 语法分析中出现语法错误时引发的异常。 The exception that is thrown when there is a syntax error in XML parsing. 此类不能被继承。 This class cannot be inherited.

界面

IEvidenceFactory

获取对象的 Evidence Gets an object's Evidence.

IPermission

定义由权限类型实现的方法。 Defines methods implemented by permission types.

ISecurityEncodable

定义使权限对象状态与 XML 元素表示形式进行相互转换的方法。 Defines the methods that convert permission object state to and from XML element representation.

ISecurityPolicyEncodable

支持使权限对象状态与 XML 元素表示形式进行相互转换的方法。 Supports the methods that convert permission object state to and from an XML element representation.

IStackWalk

用于管理堆栈遍历,此堆栈遍历可确定调用堆栈中的所有调用函数是否具有访问受保护资源的所需权限。 Manages the stack walk that determines whether all callers in the call stack have the required permissions to access a protected resource.

枚举

HostSecurityManagerOptions

指定将由宿主安全管理器使用的安全策略组件。 Specifies the security policy components to be used by the host security manager.

ManifestKinds

表示签名信息适用的清单类型。 Represents the type of manifest that the signature information applies to.

PartialTrustVisibilityLevel

指定用 AllowPartiallyTrustedCallersAttribute (APTCA) 特性标记的代码的默认部分信任可见性。 Specifies the default partial-trust visibility for code that is marked with the AllowPartiallyTrustedCallersAttribute (APTCA) attribute.

PolicyLevelType

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

SecurityContextSource

标识安全上下文的源。 Identifies the source for the security context.

SecurityCriticalScope

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

SecurityRuleSet

标识公共语言运行时应该对程序集强制的一组安全规则。 Identifies the set of security rules the common language runtime should enforce for an assembly.

SecurityZone

定义与安全策略所使用的安全区域相对应的整数值。 Defines the integer values corresponding to security zones used by security policy.