<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.1.25080.5" />

SecurityState

public abstract class SecurityState
Provides a base class for requesting the security status of an action from the AppDomainManager object.
protected SecurityState()

Initializes a new instance of the SecurityState class.

public abstract void EnsureState()

When overridden in a derived class, ensures that the state that is represented by SecurityState is available on the host.

public bool IsStateAvailable()

Gets a value that indicates whether the state for this implementation of the SecurityState class is available on the current host.