SuppressUnmanagedCodeSecurityAttribute.cs 732 B

12345678910111213141516
  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. // SuppressUnmanagedCodeSecurityAttribute:
  7. // Indicates that the target P/Invoke method(s) should skip the per-call
  8. // security checked for unmanaged code permission.
  9. [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = true, Inherited = false)]
  10. public sealed class SuppressUnmanagedCodeSecurityAttribute : Attribute
  11. {
  12. public SuppressUnmanagedCodeSecurityAttribute() { }
  13. }
  14. }