System.Security.Permissions Namespace

System.Security.Permissions 命名空间根据策略定义控制对操作和资源访问的类。 The System.Security.Permissions namespace defines classes that control access to operations and resources based on policy.

CodeAccessSecurityAttribute

为代码访问安全性指定基特性类。Specifies the base attribute class for code access security.

DataProtectionPermission

控制访问加密数据和内存的能力。Controls the ability to access encrypted data and memory. 此类不能被继承。This class cannot be inherited.

DataProtectionPermissionAttribute

允许对要使用声明性安全应用到代码中的 DataProtectionPermission 执行安全操作。Allows security actions for DataProtectionPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

EnvironmentPermission

控制对系统和用户环境变量的访问。Controls access to system and user environment variables. 此类不能被继承。This class cannot be inherited.

EnvironmentPermissionAttribute

允许对要使用声明性安全应用到代码中的 EnvironmentPermission 执行安全操作。Allows security actions for EnvironmentPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

FileDialogPermission

控制通过“文件”对话框访问文件或文件夹的能力。Controls the ability to access files or folders through a File dialog box. 此类不能被继承。This class cannot be inherited.

FileDialogPermissionAttribute

允许对要使用声明性安全应用到代码中的 FileDialogPermission 执行安全操作。Allows security actions for FileDialogPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

FileIOPermission

控制文件和文件夹的访问权限。Controls the ability to access files and folders. 此类不能被继承。This class cannot be inherited.

FileIOPermissionAttribute

允许对要使用声明性安全应用到代码中的 FileIOPermission 执行安全操作。Allows security actions for FileIOPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

GacIdentityPermission

定义从全局程序集缓存中产生的文件的标识权限。Defines the identity permission for files originating in the global assembly cache. 此类不能被继承。This class cannot be inherited.

GacIdentityPermissionAttribute

允许对要使用声明性安全应用到代码中的 GacIdentityPermission 执行安全操作。Allows security actions for GacIdentityPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

HostProtectionAttribute

允许使用声明性安全操作来确定宿主保护要求。Allows the use of declarative security actions to determine host protection requirements. 此类不能被继承。This class cannot be inherited.

IsolatedStorageFilePermission

指定允许使用私有虚拟文件系统。Specifies the allowed usage of a private virtual file system. 此类不能被继承。This class cannot be inherited.

IsolatedStorageFilePermissionAttribute

允许对要使用声明性安全应用到代码中的 IsolatedStorageFilePermission 执行安全操作。Allows security actions for IsolatedStorageFilePermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

IsolatedStoragePermission

表示对一般独立存储功能的访问。Represents access to generic isolated storage capabilities.

IsolatedStoragePermissionAttribute

允许对要使用声明性安全应用到代码中的 IsolatedStoragePermission 执行安全操作。Allows security actions for IsolatedStoragePermission to be applied to code using declarative security.

KeyContainerPermission

控制访问密钥容器的能力。Controls the ability to access key containers. 此类不能被继承。This class cannot be inherited.

KeyContainerPermissionAccessEntry

为特定密钥容器指定访问权限。Specifies access rights for specific key containers. 此类不能被继承。This class cannot be inherited.

KeyContainerPermissionAccessEntryCollection

表示 KeyContainerPermissionAccessEntry 对象集合。Represents a collection of KeyContainerPermissionAccessEntry objects. 此类不能被继承。This class cannot be inherited.

KeyContainerPermissionAccessEntryEnumerator

表示 KeyContainerPermissionAccessEntry 中的 KeyContainerPermissionAccessEntryCollection 对象的枚举数。Represents the enumerator for KeyContainerPermissionAccessEntry objects in a KeyContainerPermissionAccessEntryCollection.

KeyContainerPermissionAttribute

允许对要使用声明性安全应用到代码中的 KeyContainerPermission 执行安全操作。Allows security actions for KeyContainerPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

MediaPermission

MediaPermission 描述一组安全权限,该权限用于控制音频、图像和视频媒体在不完全可信的 Windows Presentation Foundation (WPF) 应用程序中的运行能力。The MediaPermission describes a set of security permissions that controls the ability for audio, image, and video media to work in a partial-trust Windows Presentation Foundation (WPF) application.

MediaPermissionAttribute

允许对要使用声明性安全应用到代码中的 MediaPermission 执行安全操作。Allows security actions for MediaPermission to be applied to code using declarative security.

PermissionSetAttribute

允许对使用声明安全性应用到代码中的 PermissionSet 进行安全操作。Allows security actions for a PermissionSet to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

PrincipalPermission

允许使用为声明性和命令性安全操作定义的语言构造对活动主体执行检查(请参阅 IPrincipal)。Allows checks against the active principal (see IPrincipal) using the language constructs defined for both declarative and imperative security actions. 此类不能被继承。This class cannot be inherited.

PrincipalPermissionAttribute

允许对要使用声明性安全应用到代码中的 PrincipalPermission 执行安全操作。Allows security actions for PrincipalPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

PublisherIdentityPermission

表示软件发行者的身份标识。Represents the identity of a software publisher. 此类不能被继承。This class cannot be inherited.

PublisherIdentityPermissionAttribute

允许对要使用声明性安全应用到代码中的 PublisherIdentityPermission 执行安全操作。Allows security actions for PublisherIdentityPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

ReflectionPermission

通过 System.Reflection API 控制对非公共类型和成员的访问。Controls access to non-public types and members through the System.Reflection APIs. 控制 System.Reflection.Emit API 的一些功能。Controls some features of the System.Reflection.Emit APIs.

ReflectionPermissionAttribute

允许对要使用声明性安全应用到代码中的 ReflectionPermission 执行安全操作。Allows security actions for ReflectionPermission to be applied to code using declarative security.

RegistryPermission

控制访问注册表变量的能力。Controls the ability to access registry variables. 此类不能被继承。This class cannot be inherited.

RegistryPermissionAttribute

允许对要使用声明性安全应用到代码中的 RegistryPermission 执行安全操作。Allows security actions for RegistryPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

ResourcePermissionBase

允许控制代码访问安全权限。Allows control of code access security permissions.

ResourcePermissionBaseEntry

定义代码访问安全权限集的最小单位。Defines the smallest unit of a code access security permission set.

SecurityAttribute

CodeAccessSecurityAttribute 派生自的声明安全性指定基特性类。Specifies the base attribute class for declarative security from which CodeAccessSecurityAttribute is derived.

SecurityPermission

描述应用于代码的安全权限集。Describes a set of security permissions applied to code. 此类不能被继承。This class cannot be inherited.

SecurityPermissionAttribute

允许对要使用声明性安全应用到代码中的 SecurityPermission 执行安全操作。Allows security actions for SecurityPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

SiteIdentityPermission

为作为代码来源地的网站定义标识权限。Defines the identity permission for the Web site from which the code originates. 此类不能被继承。This class cannot be inherited.

SiteIdentityPermissionAttribute

允许对要使用声明性安全应用到代码中的 SiteIdentityPermission 执行安全操作。Allows security actions for SiteIdentityPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

StorePermission

控制对包含 X.509 证书的存储区的访问权限。Controls access to stores containing X.509 certificates. 此类不能被继承。This class cannot be inherited.

StorePermissionAttribute

允许对要使用声明性安全应用到代码中的 StorePermission 执行安全操作。Allows security actions for StorePermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

StrongNameIdentityPermission

为强名称定义标识权限。Defines the identity permission for strong names. 此类不能被继承。This class cannot be inherited.

StrongNameIdentityPermissionAttribute

允许对要使用声明性安全应用到代码中的 StrongNameIdentityPermission 执行安全操作。Allows security actions for StrongNameIdentityPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

StrongNamePublicKeyBlob

表示具有强名称公钥 (称为 blob) 的信息。Represents the public key information (called a blob) for a strong name. 此类不能被继承。This class cannot be inherited.

TypeDescriptorPermission

定义对 TypeDescriptor 类的部分信任访问。Defines partial-trust access to the TypeDescriptor class.

TypeDescriptorPermissionAttribute

确定应用于 TypeDescriptor 的权限标志。Determines the permission flags that apply to a TypeDescriptor.

UIPermission

控制与用户界面和剪贴板相关的权限。Controls the permissions related to user interfaces and the Clipboard. 此类不能被继承。This class cannot be inherited.

UIPermissionAttribute

允许对要使用声明性安全应用到代码中的 UIPermission 执行安全操作。Allows security actions for UIPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

UrlIdentityPermission

为代码源自的 URL 定义标识权限。Defines the identity permission for the URL from which the code originates. 此类不能被继承。This class cannot be inherited.

UrlIdentityPermissionAttribute

允许对要使用声明性安全应用到代码中的 UrlIdentityPermission 执行安全操作。Allows security actions for UrlIdentityPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

WebBrowserPermission

WebBrowserPermission 对象控制创建 WebBrowser 控件的能力。The WebBrowserPermission object controls the ability to create the WebBrowser control.

WebBrowserPermissionAttribute

允许对要使用声明性安全应用到代码中的 WebBrowserPermission 执行安全操作。Allows security actions for WebBrowserPermission to be applied to code using declarative security.

ZoneIdentityPermission

为代码源自的区域定义标识权限。Defines the identity permission for the zone from which the code originates. 此类不能被继承。This class cannot be inherited.

ZoneIdentityPermissionAttribute

允许对要使用声明性安全应用到代码中的 ZoneIdentityPermission 执行安全操作。Allows security actions for ZoneIdentityPermission to be applied to code using declarative security. 此类不能被继承。This class cannot be inherited.

接口

IUnrestrictedPermission

允许一种权限公开其为无限制状态。Allows a permission to expose an unrestricted state.

枚举

DataProtectionPermissionFlags

指定加密数据和内存的访问权限。Specifies the access permissions for encrypting data and memory.

EnvironmentPermissionAccess

指定可访问环境变量。Specifies access to environment variables.

FileDialogPermissionAccess

指定允许通过“文件”对话框访问文件的类型。Specifies the type of access to files allowed through the File dialog boxes.

FileIOPermissionAccess

指定所请求的文件访问权限的类型。Specifies the type of file access requested.

HostProtectionResource

指定若由方法或类调用,可能对宿主有害的功能的类别。Specifies categories of functionality potentially harmful to the host if invoked by a method or class.

IsolatedStorageContainment

指定独立存储区所允许的用途。Specifies the permitted use of isolated storage.

KeyContainerPermissionFlags

指定允许的密钥容器访问类型。Specifies the type of key container access allowed.

MediaPermissionAudio

指定音频的权限级别。Specifies the permission level for audio.

MediaPermissionImage

指定图像的权限级别。Specifies the permission level for images.

MediaPermissionVideo

指定视频的权限级别。Specifies the permission level for video.

PermissionState

指定权限在创建时是否对资源有所有访问权限或没有任何访问权限。Specifies whether a permission should have all or no access to resources at creation.

ReflectionPermissionFlag

指定 System.ReflectionSystem.Reflection.Emit 命名空间的允许用法。Specifies the permitted use of the System.Reflection and System.Reflection.Emit namespaces.

RegistryPermissionAccess

指定允许的对注册表项和值的访问权。Specifies the permitted access to registry keys and values.

SecurityAction

指定可以使用声明性安全执行的安全操作。Specifies the security actions that can be performed using declarative security.

SecurityPermissionFlag

为安全权限对象指定访问标志。Specifies access flags for the security permission object.

StorePermissionFlags

指定对 X.509 证书存储区的允许访问权限。Specifies the permitted access to X.509 certificate stores.

TypeDescriptorPermissionFlags

定义类型描述符的权限设置。Defines permission settings for type descriptors.

UIPermissionClipboard

指定允许调用代码的剪贴板访问权限的类型。Specifies the type of clipboard access that is allowed to the calling code.

UIPermissionWindow

指定允许使用代码的窗口的类型。Specifies the type of windows that code is allowed to use.

WebBrowserPermissionLevel

指定 Web 浏览器的权限级别。Specifies the permission level for a Web browser.