SecurityAttribute

SecurityAttributeECMA 1.0, serializable

System.Security.Permissions (mscorlib.dll)abstract class
public abstract class SecurityAttribute : Attribute { // Public Constructors    public SecurityAttribute(SecurityAction action); // Public Instance Properties    public SecurityAction Action{set; get; }    public bool Unrestricted{set; get; } // Public Instance Methods    public abstract IPermission CreatePermission(  ); }

The abstract SecurityAttribute class provides a base class from which the CodeAccessSecurityAttribute is derived. The Unrestricted property allows creation of security attributes that represent permissions in an unrestricted state. Although all derived permission attributes inherit Unrestricted, it is of use only when dealing with the attribute counterparts of permissions that implement the IUnrestrictedPermission interface. When required, the runtime calls the CreatePermission( ) method to create configured permission objects correctly from the configuration defined in a security attribute.

Hierarchy

System.Object System.Attribute SecurityAttribute

Subclasses

CodeAccessSecurityAttribute

Valid On

Assembly, Class, Struct, Constructor, Method



Programming. NET Security
Programming .Net Security
ISBN: 0596004427
EAN: 2147483647
Year: 2005
Pages: 346

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net