<PackageReference Include="System.Security.Permissions" Version="11.0.0-preview.2.26159.112" />

System.Security.Permissions.HostProtectionAttribute

Allows the use of declarative security actions to determine host protection requirements. This class cannot be inherited.
namespace System.Security.Permissions { public sealed class HostProtectionAttribute : CodeAccessSecurityAttribute { public bool ExternalProcessMgmt { get; set; } public bool ExternalThreading { get; set; } public bool MayLeakOnAbort { get; set; } public HostProtectionResource Resources { get; set; } public bool SecurityInfrastructure { get; set; } public bool SelfAffectingProcessMgmt { get; set; } public bool SelfAffectingThreading { get; set; } public bool SharedState { get; set; } public bool Synchronization { get; set; } public bool UI { get; set; } public HostProtectionAttribute(); public HostProtectionAttribute(SecurityAction action); } }