Programming .Net Security

SecurityPermissionECMA 1.0, serializable

System.Security.Permissions (mscorlib.dll)sealed class

public sealed class SecurityPermission : System.Security.CodeAccessPermission : IUnrestrictedPermission, IBuiltInPermission { // Public Constructors public SecurityPermission(PermissionState state); public SecurityPermission(SecurityPermissionFlag flag); // Public Instance Properties public SecurityPermissionFlag Flags{set; get; } // Public Instance Methods public override IPermission Copy( ); // overrides CodeAccessPermission public override void FromXml(System.Security.SecurityElement esd); // overrides CodeAccessPermission public override IPermission Intersect(System.Security.IPermission target); // overrides CodeAccessPermission public override bool IsSubsetOf(System.Security.IPermission target); // overrides CodeAccessPermission public bool IsUnrestricted( ); // implements IUnrestrictedPermission public override SecurityElement ToXml( ); // overrides CodeAccessPermission public override IPermission Union(System.Security.IPermission target); // overrides CodeAccessPermission }

This code-access permission controls access to a set of 14 discrete operations that are critical to the security of the runtime environment. These include highly trusted operations, such as the ability of code to control evidence, create and manipulate application domains, and skip verification. The specific operations represented by a SecurityPermission object are identified at construction using members of the SecurityPermissionFlag enumeration. To retrieve or modify the operations represented by a SecurityPermission object, use the Flags property.

Hierarchy

System.Object System.Security.CodeAccessPermission(System.Security.IPermission, System.Security.ISecurityEncodable, System.Security.IStackWalk) SecurityPermission(IUnrestrictedPermission, IBuiltInPermission)

Категории