System.Security.Permissions Namespace

The System.Security.Permissions namespace defines classes that control access to operations and resources based on policy.

Remarks

 

Classes

TypeReason
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

Allows security actions for DataProtectionPermission to be applied to code using declarative security. This class cannot be inherited.

DataProtectionPermissionFlags

Specifies the access permissions for encrypting data and memory.

EnvironmentPermission

Controls access to system and user environment variables. This class cannot be inherited.

EnvironmentPermissionAccess

Specifies access to environment variables.

EnvironmentPermissionAttribute

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.

FileDialogPermissionAccess

Specifies the type of access to files allowed through the File dialog boxes.

FileDialogPermissionAttribute

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.

FileIOPermissionAccess

Specifies the type of file access requested.

FileIOPermissionAttribute

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

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.

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.

IsolatedStorageFilePermission

Specifies the allowed usage of a private virtual file system. This class cannot be inherited.

IsolatedStorageFilePermissionAttribute

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

Allows security actions for IsolatedStoragePermission to be applied to code using declarative security.

IUnrestrictedPermission

Allows a permission to expose an unrestricted state.

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

Represents a collection of KeyContainerPermissionAccessEntry objects. This class cannot be inherited.

KeyContainerPermissionAccessEntryEnumerator

Represents the enumerator for KeyContainerPermissionAccessEntry objects in a KeyContainerPermissionAccessEntryCollection.

KeyContainerPermissionAttribute

Allows security actions for KeyContainerPermission to be applied to code using declarative security. This class cannot be inherited.

KeyContainerPermissionFlags

Specifies the type of key container access allowed.

PermissionSetAttribute

Allows security actions for a PermissionSet to be applied to code using declarative security. This class cannot be inherited.

PermissionState

Specifies whether a permission should have all or no access to resources at creation.

PrincipalPermission

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

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

Allows security actions for PublisherIdentityPermission to be applied to code using declarative security. This class cannot be inherited.

ReflectionPermission

Controls access to non-public types and members through the System.Reflection APIs. Controls some features of the System.Reflection.Emit APIs.

ReflectionPermissionAttribute

Allows security actions for ReflectionPermission to be applied to code using declarative security.

ReflectionPermissionFlag

Specifies the permitted use of the System.Reflection and System.Reflection.Emit namespaces.

RegistryPermission

Controls the ability to access registry variables. This class cannot be inherited.

RegistryPermissionAccess

Specifies the permitted access to registry keys and values.

RegistryPermissionAttribute

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.

SecurityAction

Specifies the security actions that can be performed using declarative security.

SecurityAttribute

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

Allows security actions for SecurityPermission to be applied to code using declarative security. This class cannot be inherited.

SecurityPermissionFlag

Specifies access flags for the security permission object.

SiteIdentityPermission

Defines the identity permission for the Web site from which the code originates. This class cannot be inherited.

SiteIdentityPermissionAttribute

Allows security actions for SiteIdentityPermission to be applied to code using declarative security. This class cannot be inherited.

StorePermission

Controls access to stores containing X.509 certificates. This class cannot be inherited.

StorePermissionAttribute

Allows security actions for StorePermission to be applied to code using declarative security. This class cannot be inherited.

StorePermissionFlags

Specifies the permitted access to X.509 certificate stores.

StrongNameIdentityPermission

Defines the identity permission for strong names. This class cannot be inherited.

StrongNameIdentityPermissionAttribute

Allows security actions for StrongNameIdentityPermission to be applied to code using declarative security. This class cannot be inherited.

StrongNamePublicKeyBlob

Represents the public key information (called a blob) for a strong name. This class cannot be inherited.

UIPermission

Controls the permissions related to user interfaces and the Clipboard. This class cannot be inherited.

UIPermissionAttribute

Allows security actions for UIPermission to be applied to code using declarative security. This class cannot be inherited.

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.

UrlIdentityPermission

Defines the identity permission for the URL from which the code originates. This class cannot be inherited.

UrlIdentityPermissionAttribute

Allows security actions for UrlIdentityPermission to be applied to code using declarative security. This class cannot be inherited.

ZoneIdentityPermission

Defines the identity permission for the zone from which the code originates. This class cannot be inherited.

ZoneIdentityPermissionAttribute

Allows security actions for ZoneIdentityPermission to be applied to code using declarative security. This class cannot be inherited.