<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.6.0-preview8.19405.3" />

IInternalConfigHost

public interface IInternalConfigHost
Defines interfaces used by internal .NET structures to initialize application configuration properties.
bool IsRemote { get; }

Returns a value indicating whether the configuration is remote.

Returns a value indicating whether the host configuration supports change notification.

bool SupportsLocation { get; }

Returns a value indicating whether the host configuration supports location tags.

bool SupportsPath { get; }

Returns a value indicating whether the host configuration supports path tags.

bool SupportsRefresh { get; }

Returns a value indicating whether the host configuration supports configuration refresh.

object CreateConfigurationContext(string configPath, string locationSubPath)

Creates and returns a context object for a ConfigurationElement of an application configuration.

object CreateDeprecatedConfigContext(string configPath)

Creates and returns a deprecated context object of the application configuration.

string DecryptSection(string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection)

Decrypts an encrypted configuration section and returns it as a string.

void DeleteStream(string streamName)

Deletes the Stream object performing I/O tasks on the application configuration file.

string EncryptSection(string clearTextXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection)

Encrypts a configuration section and returns it as a string.

string GetConfigPathFromLocationSubPath(string configPath, string locationSubPath)

Returns the complete path to an application configuration file based on the location subpath.

Type GetConfigType(string typeName, bool throwOnError)

Returns a Type object representing the type of the configuration object.

Returns a string representing a type name from the Type object representing the type of the configuration.

void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady)

string GetStreamName(string configPath)

Returns a string representing the configuration file name associated with the Stream object performing I/O tasks on the configuration file.

string GetStreamNameForConfigSource(string streamName, string configSource)

Returns a string representing the configuration file name associated with the Stream object performing I/O tasks on a remote configuration file.

object GetStreamVersion(string streamName)

Returns the version of the Stream object associated with configuration file.

Instructs the host to impersonate and returns an IDisposable object required by the internal .NET structure.

void Init(IInternalConfigRoot configRoot, object[] hostInitParams)

Initializes a configuration host.

void InitForConfiguration(ref string locationSubPath, out string configPath, out string locationConfigPath, IInternalConfigRoot configRoot, object[] hostInitConfigurationParams)

Initializes a configuration object.

bool IsAboveApplication(string configPath)

Returns a value indicating whether the configuration file is located at a higher level in the configuration hierarchy than the application configuration.

bool IsConfigRecordRequired(string configPath)

Returns a value indicating whether a child record is required for a child configuration path.

bool IsDefinitionAllowed(string configPath, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition)

Determines if a different Type definition is allowable for an application configuration object.

bool IsFile(string streamName)

Returns a value indicating whether the file path used by a Stream object to read a configuration file is a valid path.

Returns a value indicating whether a configuration section requires a fully trusted code access security level and does not allow the AllowPartiallyTrustedCallersAttribute attribute to disable implicit link demands.

Returns a value indicating whether the initialization of a configuration object is considered delayed.

bool IsLocationApplicable(string configPath)

Returns a value indicating whether the configuration object supports a location tag.

bool IsSecondaryRoot(string configPath)

Returns a value indicating whether a configuration path is to a configuration node whose contents should be treated as a root.

bool IsTrustedConfigPath(string configPath)

Returns a value indicating whether the configuration path is trusted.

Stream OpenStreamForRead(string streamName)

Opens a Stream to read a configuration file.

Stream OpenStreamForRead(string streamName, bool assertPermissions)

Opens a Stream object to read a configuration file.

Stream OpenStreamForWrite(string streamName, string templateStreamName, ref object writeContext)

Opens a Stream object for writing to a configuration file or for writing to a temporary file used to build a configuration file. Allows a Stream object to be designated as a template for copying file attributes.

Stream OpenStreamForWrite(string streamName, string templateStreamName, ref object writeContext, bool assertPermissions)

Opens a Stream object for writing to a configuration file. Allows a Stream object to be designated as a template for copying file attributes.

bool PrefetchAll(string configPath, string streamName)

Returns a value indicating whether the entire configuration file could be read by a designated Stream object.

bool PrefetchSection(string sectionGroupName, string sectionName)

Instructs the IInternalConfigHost object to read a designated section of its associated configuration file.

Indicates a new configuration record requires a complete initialization.

object StartMonitoringStreamForChanges(string streamName, StreamChangeCallback callback)

Instructs the IInternalConfigHost object to monitor an associated Stream object for changes in a configuration file.

void StopMonitoringStreamForChanges(string streamName, StreamChangeCallback callback)

Instructs the IInternalConfigHost object to stop monitoring an associated Stream object for changes in a configuration file.

void VerifyDefinitionAllowed(string configPath, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition, IConfigErrorInfo errorInfo)

Verifies that a configuration definition is allowed for a configuration record.

void WriteCompleted(string streamName, bool success, object writeContext)

Indicates that all writing to the configuration file has completed.

void WriteCompleted(string streamName, bool success, object writeContext, bool assertPermissions)

Indicates that all writing to the configuration file has completed and specifies whether permissions should be asserted.