<PackageReference Include="System.Security.Permissions" Version="10.0.4" />

System.Security.Policy.TrustManagerContext

public class TrustManagerContext
Represents the context for the trust manager to consider when making the decision to run an application, and when setting up the security on a new AppDomain in which to run an application.
namespace System.Security.Policy { public class TrustManagerContext { public virtual bool IgnorePersistedDecision { get; set; } public virtual bool KeepAlive { get; set; } public virtual bool NoPrompt { get; set; } public virtual bool Persist { get; set; } public virtual TrustManagerUIContext UIContext { get; set; } public virtual ApplicationIdentity PreviousApplicationIdentity { get; set; } public TrustManagerContext(); public TrustManagerContext(TrustManagerUIContext uiContext); } }