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

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.