Updated: August 2008
Specifies that code or an assembly performs security-critical operations.
Assembly: mscorlib (in mscorlib.dll)
[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 sealed class SecurityCriticalAttribute : 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. Either the attribute or the SecuritySafeCriticalAttribute attribute must be applied to code for the code to perform security-critical operations.
Applying the 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.