<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0-rc.2.23479.6" />

IInternalConfigHost

public interface IInternalConfigHost
Defines interfaces used by internal .NET structures to initialize application configuration properties.
using System.IO; using System.Security; namespace System.Configuration.Internal { public interface IInternalConfigHost { bool SupportsChangeNotifications { get; } bool SupportsRefresh { get; } bool SupportsPath { get; } bool SupportsLocation { get; } bool IsRemote { get; } void Init(IInternalConfigRoot configRoot, params object[] hostInitParams); void InitForConfiguration(ref string locationSubPath, out string configPath, out string locationConfigPath, IInternalConfigRoot configRoot, params object[] hostInitConfigurationParams); bool IsConfigRecordRequired(string configPath); bool IsInitDelayed(IInternalConfigRecord configRecord); void RequireCompleteInit(IInternalConfigRecord configRecord); bool IsSecondaryRoot(string configPath); string GetStreamName(string configPath); string GetStreamNameForConfigSource(string streamName, string configSource); object GetStreamVersion(string streamName); Stream OpenStreamForRead(string streamName); Stream OpenStreamForRead(string streamName, bool assertPermissions); Stream OpenStreamForWrite(string streamName, string templateStreamName, ref object writeContext); Stream OpenStreamForWrite(string streamName, string templateStreamName, ref object writeContext, bool assertPermissions); void WriteCompleted(string streamName, bool success, object writeContext); void WriteCompleted(string streamName, bool success, object writeContext, bool assertPermissions); void DeleteStream(string streamName); bool IsFile(string streamName); object StartMonitoringStreamForChanges(string streamName, StreamChangeCallback callback); void StopMonitoringStreamForChanges(string streamName, StreamChangeCallback callback); bool IsAboveApplication(string configPath); string GetConfigPathFromLocationSubPath(string configPath, string locationSubPath); bool IsLocationApplicable(string configPath); bool IsDefinitionAllowed(string configPath, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition); void VerifyDefinitionAllowed(string configPath, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition, IConfigErrorInfo errorInfo); bool PrefetchAll(string configPath, string streamName); bool PrefetchSection(string sectionGroupName, string sectionName); object CreateDeprecatedConfigContext(string configPath); object CreateConfigurationContext(string configPath, string locationSubPath); string DecryptSection(string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection); string EncryptSection(string clearTextXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection); Type GetConfigType(string typeName, bool throwOnError); string GetConfigTypeName(Type t); bool IsTrustedConfigPath(string configPath); bool IsFullTrustSectionWithoutAptcaAllowed(IInternalConfigRecord configRecord); IDisposable Impersonate(); [Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId = "SYSLIB0003", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady); } }