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

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.
public virtual bool IgnorePersistedDecision { get; set; }

Gets or sets a value indicating whether the application security manager should ignore any persisted decisions and call the trust manager.

public virtual bool KeepAlive { get; set; }

Gets or sets a value indicating whether the trust manager should cache state for this application, to facilitate future requests to determine application trust.

public virtual bool NoPrompt { get; set; }

Gets or sets a value indicating whether the trust manager should prompt the user for trust decisions.

public virtual bool Persist { get; set; }

Gets or sets a value indicating whether the user's response to the consent dialog should be persisted.

public virtual ApplicationIdentity PreviousApplicationIdentity { get; set; }

Gets or sets the identity of the previous application identity.

public virtual TrustManagerUIContext UIContext { get; set; }

Gets or sets the type of user interface the trust manager should display.

Initializes a new instance of the TrustManagerContext class.

Initializes a new instance of the TrustManagerContext class using the specified TrustManagerUIContext object.