File: src\libraries\System.Private.CoreLib\src\System\Security\Permissions\SecurityAttribute.cs
Web Access
Project: src\src\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj (System.Private.CoreLib)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Security.Permissions
{
    [Obsolete(Obsoletions.CodeAccessSecurityMessage, DiagnosticId = Obsoletions.CodeAccessSecurityDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
    [AttributeUsage((AttributeTargets)(109), AllowMultiple = true, Inherited = false)]
    public abstract partial class SecurityAttribute : Attribute
    {
        protected SecurityAttribute(SecurityAction action) { }
        public SecurityAction Action { get; set; }
        public bool Unrestricted { get; set; }
        public abstract IPermission? CreatePermission();
    }
}