SecurityCriticalAttribute Class
Assembly: mscorlib (in mscorlib.dll)
'Declaration <AttributeUsageAttribute(AttributeTargets.Assembly Or AttributeTargets.Module Or AttributeTargets.Class Or AttributeTargets.Struct Or AttributeTargets.Enum Or AttributeTargets.Constructor Or AttributeTargets.Method Or AttributeTargets.Property Or AttributeTargets.Field Or AttributeTargets.Event Or AttributeTargets.Interface Or AttributeTargets.Delegate, AllowMultiple:=False, Inherited:=False)> _ Public NotInheritable Class SecurityCriticalAttribute Inherits Attribute 'Usage Dim instance As SecurityCriticalAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface|AttributeTargets.Delegate, AllowMultiple=false, Inherited=false) */ public final class SecurityCriticalAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface|AttributeTargets.Delegate, AllowMultiple=false, Inherited=false) public final class SecurityCriticalAttribute extends Attribute
Security-critical operations are actions that affect code access security, such as elevation of privilege through suppression of code access security checks by using the Assert method, calling unsafe managed code, and so forth. The SecurityCriticalAttribute attribute must be applied to code for the code to perform security-critical operations. Security-critical code is accessible from partially trusted code and can expose access to protected resources or functionality. Code with the SecurityCriticalAttribute applied must be subject to a rigorous security audit to ensure that it can be used safely in a secure execution environment. Operations that are not security-critical are described as transparent.
Applying the SecurityCriticalAttribute at the assembly level identifies it as a security-critical assembly. The entire assembly can be identified as critical by setting the scope parameter Everything.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.