System.Security Namespace

The System.Security namespace provides the underlying structure of the common language runtime security system, including base classes for permissions.

  Class Description
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps 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.
Public class CodeAccessPermission Defines the underlying structure of all code access permissions.
Public class HostProtectionException The exception that is thrown when a denied host resource is detected.
Public class HostSecurityManager Allows the control and customization of security behavior for application domains.
Public class NamedPermissionSet Defines a permission set that has a name and description associated with it. This class cannot be inherited.
Public class PermissionSet Represents a collection that can contain many different types of permissions.
Public class ReadOnlyPermissionSet Represents a read-only collection that can contain many different types of permissions.
Public class SecureString Represents text that should be kept confidential. The text is encrypted for privacy when being used, and deleted from computer memory when no longer needed. This class cannot be inherited.
Public class SecurityContext Encapsulates and propagates all security-related data for execution contexts transferred across threads. This class cannot be inherited.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps SecurityCriticalAttribute Specifies that code or an assembly performs security-critical operations.
Public class SecurityElement Represents the XML object model for encoding security objects. This class cannot be inherited.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps SecurityException The exception that is thrown when a security error is detected.
Public class SecurityManager Provides the main access point for classes interacting with the security system. This class cannot be inherited.
Public class SecurityRulesAttribute Indicates the set of security rules the common language runtime should enforce for an assembly.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps SecuritySafeCriticalAttribute Identifies types or members as security-critical and safely accessible by transparent code.
Public class SecurityState Provides a base class for requesting the security status of an action from the AppDomainManager object.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps SecurityTransparentAttribute Specifies that an assembly cannot cause an elevation of privilege.
Public class SecurityTreatAsSafeAttribute Obsolete. Identifies which of the nonpublic SecurityCriticalAttribute members are accessible by transparent code within the assembly.
Public class SuppressUnmanagedCodeSecurityAttribute Allows managed code to call into unmanaged code without a stack walk. This class cannot be inherited.
Public class UnverifiableCodeAttribute Marks modules containing unverifiable code. This class cannot be inherited.
Public class Supported by Portable Class Library Supported in .NET for Windows Store apps 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.
Public class XmlSyntaxException The exception that is thrown when there is a syntax error in XML parsing. This class cannot be inherited.

  Interface Description
Public interface IEvidenceFactory Gets an object's Evidence.
Public interface IPermission Defines methods implemented by permission types.
Public interface ISecurityEncodable Defines the methods that convert permission object state to and from XML element representation.
Public interface ISecurityPolicyEncodable Supports the methods that convert permission object state to and from an XML element representation.
Public interface IStackWalk Manages the stack walk that determines whether all callers in the call stack have the required permissions to access a protected resource.

  Enumeration Description
Public enumeration HostSecurityManagerOptions Specifies the security policy components to be used by the host security manager.
Public enumeration ManifestKinds Represents the type of manifest that the signature information applies to.
Public enumeration PartialTrustVisibilityLevel Specifies the default partial-trust visibility for code that is marked with the AllowPartiallyTrustedCallersAttribute (APTCA) attribute.
Public enumeration PolicyLevelType Specifies the type of a managed code policy level.
Public enumeration SecurityContextSource Identifies the source for the security context.
Public enumeration SecurityCriticalScope Obsolete. Specifies the scope of a SecurityCriticalAttribute.
Public enumeration SecurityRuleSet Identifies the set of security rules the common language runtime should enforce for an assembly.
Public enumeration SecurityZone Defines the integer values corresponding to security zones used by security policy.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft