SecuritySafeCriticalAttribute.cs 1.6 KB

123456789101112131415161718192021222324252627282930
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. namespace System.Security
  5. {
  6. // SecuritySafeCriticalAttribute:
  7. // Indicates that the code may contain violations to the security critical rules (e.g. transitions from
  8. // critical to non-public transparent, transparent to non-public critical, etc.), has been audited for
  9. // security concerns and is considered security clean. Also indicates that the code is considered SecurityCritical.
  10. // The effect of this attribute is as if the code was marked [SecurityCritical][SecurityTreatAsSafe].
  11. // At assembly-scope, all rule checks will be suppressed within the assembly and for calls made against the assembly.
  12. // At type-scope, all rule checks will be suppressed for members within the type and for calls made against the type.
  13. // At member level (e.g. field and method) the code will be treated as public - i.e. no rule checks for the members.
  14. [AttributeUsage(AttributeTargets.Class |
  15. AttributeTargets.Struct |
  16. AttributeTargets.Enum |
  17. AttributeTargets.Constructor |
  18. AttributeTargets.Method |
  19. AttributeTargets.Field |
  20. AttributeTargets.Interface |
  21. AttributeTargets.Delegate,
  22. AllowMultiple = false,
  23. Inherited = false)]
  24. public sealed class SecuritySafeCriticalAttribute : Attribute
  25. {
  26. public SecuritySafeCriticalAttribute() { }
  27. }
  28. }