SecurityAttribute Class
Specifies the base attribute class for declarative security from which CodeAccessSecurityAttribute is derived.
For a list of all members of this type, see SecurityAttribute Members.
System.Object
System.Attribute
System.Security.Permissions.SecurityAttribute
System.Security.Permissions.CodeAccessSecurityAttribute
[Visual Basic] <AttributeUsage(AttributeTargets.Assembly Or AttributeTargets.Class _ Or AttributeTargets.Struct Or AttributeTargets.Constructor Or _ AttributeTargets.Method)> <Serializable> MustInherit Public Class SecurityAttribute Inherits Attribute [C#] [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method)] [Serializable] public abstract class SecurityAttribute : Attribute [C++] [AttributeUsage(AttributeTargets::Assembly | AttributeTargets::Class | AttributeTargets::Struct | AttributeTargets::Constructor | AttributeTargets::Method)] [Serializable] public __gc __abstract class SecurityAttribute : public Attribute [JScript] public AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method) Serializable abstract class SecurityAttribute extends Attribute
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
Notes to Inheritors: When you inherit from SecurityAttribute, you must override CreatePermission.
Requirements
Namespace: System.Security.Permissions
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)
See Also
SecurityAttribute Members | System.Security.Permissions Namespace | Extending Metadata Using Attributes