System.Security.Permissions Namespace

System.Security.Permissions 命名空間 (Namespace),會定義根據原則控制作業和資源存取的類別。 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

表示泛用隔離儲存區 (Isolated Storage) 能力的存取權。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

表示 KeyContainerPermissionAccessEntryKeyContainerPermissionAccessEntryCollection 物件的列舉值。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

表示軟體發行者 (Publisher) 的識別 (Identity)。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

定義程式碼來源網站的識別 (Identity) 使用權限。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

定義強式名稱 (Strong Name) 的識別使用權限。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 的識別 (Identity) 使用權限。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

定義程式碼來源區域的識別 (Identity) 使用權限。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

指定隔離儲存區 (Isolated Storage) 的允許用法。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

指定登錄機碼 (Registry Key) 和值的允許存取。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.