AllowPartiallyTrustedCallersAttribute.cs 823 B

12345678910111213141516171819
  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. // AllowPartiallyTrustedCallersAttribute:
  7. // Indicates that the Assembly is secure and can be used by untrusted
  8. // and semitrusted clients
  9. // For v.1, this is valid only on Assemblies, but could be expanded to
  10. // include Module, Method, class
  11. [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false, Inherited = false)]
  12. public sealed class AllowPartiallyTrustedCallersAttribute : Attribute
  13. {
  14. public AllowPartiallyTrustedCallersAttribute() { }
  15. public PartialTrustVisibilityLevel PartialTrustVisibilityLevel { get; set; }
  16. }
  17. }