System.Security.SecuritySafeCriticalAttribute Class

Identifies types or members as security-critical and safely accessible by transparent code.

See Also: SecuritySafeCriticalAttribute Members


[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Enum | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Delegate | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)]
public sealed class SecuritySafeCriticalAttribute : Attribute


Types or members that are marked with the System.Security.SecuritySafeCriticalAttribute attribute can be accessed by partially trusted types and members. These partially trusted types and members can be within any assembly that is marked with the System.Security.SecurityTransparentAttribute or System.Security.AllowPartiallyTrustedCallersAttribute (APTCA) attribute, or they are partially trusted for other reasons, such as being loaded into partial trust. Code that is marked with the System.Security.SecuritySafeCriticalAttribute must be subject to a rigorous security audit to ensure that it can be used safely in a secure execution environment. Security-safe-critical code must validate the permissions of callers to determine whether they have authority to access protected resources used by the code.


Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions:,