<PackageReference Include="System.Security.Permissions" Version="7.0.0-preview.5.22301.12" />

HostProtectionAttribute

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; }