<PackageReference Include="System.Security.Permissions" Version="5.0.0-preview.7.20364.11" />

ConfigurationPermission

Provides a permission structure that allows methods or classes to access configuration files.

Initializes a new instance of the ConfigurationPermission class.

public bool IsUnrestricted()

Indicates whether the permission state for the ConfigurationPermission object is the Unrestricted value of the PermissionState enumeration.