<PackageReference Include="System.Security.Permissions" Version="8.0.0-preview.7.23375.6" />

PolicyLevelType

public enum PolicyLevelType
Specifies the type of a managed code policy level.

Security policy for all managed code in an application.

Security policy for all managed code in an enterprise.

Machine = 1

Security policy for all managed code that is run on the computer.

User = 0

Security policy for all managed code that is run by the user.