<PackageReference Include="System.Configuration.ConfigurationManager" Version="10.0.5" />

System.Configuration.ContextInformation

public sealed class ContextInformation
Encapsulates the context information that is associated with a ConfigurationElement object. This class cannot be inherited.
namespace System.Configuration { public sealed class ContextInformation { public object HostingContext { get; } public bool IsMachineLevel { get; } public object GetSection(string sectionName); } }