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

DelegatingConfigHost

Delegates all members of the IInternalConfigHost interface to another instance of a host.
public virtual bool HasLocalConfig { get; }

public virtual bool HasRoamingConfig { get; }

protected IInternalConfigHost Host { get; protected set; }

Gets or sets the IInternalConfigHost object.

public virtual bool IsAppConfigHttp { get; }

public virtual bool IsRemote { get; }

Gets a value indicating whether the configuration is remote.

public virtual bool SupportsChangeNotifications { get; }

Gets a value indicating whether the host configuration supports change notifications.

public virtual bool SupportsLocation { get; }

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

public virtual bool SupportsPath { get; }

Gets a value indicating whether the host configuration has path support.

public virtual bool SupportsRefresh { get; }

Gets a value indicating whether the host configuration supports refresh.

Initializes a new instance of the DelegatingConfigHost class.

public virtual object CreateConfigurationContext(string configPath, string locationSubPath)

Creates a new configuration context.

public virtual object CreateDeprecatedConfigContext(string configPath)

Creates a deprecated configuration context.

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

Decrypts an encrypted configuration section.

public virtual void DeleteStream(string streamName)

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

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

Encrypts a section of a configuration object.

public virtual string GetConfigPathFromLocationSubPath(string configPath, string locationSubPath)

Returns a configuration path based on a location subpath.

public virtual Type GetConfigType(string typeName, bool throwOnError)

Returns a Type representing the type of the configuration.

public virtual string GetConfigTypeName(Type t)

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

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

public virtual string GetStreamName(string configPath)

Returns the name of a Stream object performing I/O tasks on a configuration file.

public virtual string GetStreamNameForConfigSource(string streamName, string configSource)

Returns the name of a Stream object performing I/O tasks on a configuration source.

public virtual object GetStreamVersion(string streamName)

Returns a FileVersion object representing the version of a Stream object performing I/O tasks on a configuration file.

public virtual IDisposable Impersonate()

Instructs the host to impersonate and returns an IDisposable object required internally by the .NET Framework.

public virtual void Init(IInternalConfigRoot configRoot, object[] hostInitParams)

Initializes the configuration host.

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

Initializes the host for configuration.

public virtual bool IsAboveApplication(string configPath)

Returns a value indicating whether the configuration is above the application configuration in the configuration hierarchy.

public virtual bool IsConfigRecordRequired(string configPath)

Returns a value indicating whether a configuration record is required for the host configuration initialization.

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

Restricts or allows definitions in the host configuration.

public virtual 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.

public virtual bool IsInitDelayed(IInternalConfigRecord configRecord)

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

public virtual bool IsLocationApplicable(string configPath)

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

public virtual 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.

public virtual bool IsTrustedConfigPath(string configPath)

Returns a value indicating whether the configuration path is trusted.

public virtual Stream OpenStreamForRead(string streamName)

Opens a Stream object to read a configuration file.

public virtual Stream OpenStreamForRead(string streamName, bool assertPermissions)

Opens a Stream object to read a configuration file.

public virtual 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.

public virtual 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.

public virtual bool PrefetchAll(string configPath, string streamName)

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

public virtual bool PrefetchSection(string sectionGroupName, string sectionName)

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

public virtual void RefreshConfigPaths()

public virtual void RequireCompleteInit(IInternalConfigRecord configRecord)

Indicates that a new configuration record requires a complete initialization.

public virtual object StartMonitoringStreamForChanges(string streamName, StreamChangeCallback callback)

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

public virtual void StopMonitoringStreamForChanges(string streamName, StreamChangeCallback callback)

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

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

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

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

Indicates that all writing to the configuration file has completed.

public virtual 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.