DelegatingConfigHost
Delegates all members of the IInternalConfigHost interface to another instance of a host.
Gets or sets the IInternalConfigHost object.
Gets a value indicating whether the configuration is remote.
Gets a value indicating whether the host configuration supports change notifications.
Gets a value indicating whether the host configuration supports location tags.
Gets a value indicating whether the host configuration has path support.
Gets a value indicating whether the host configuration supports refresh.
protected DelegatingConfigHost()
Initializes a new instance of the DelegatingConfigHost class.
Creates a new configuration context.
Creates a deprecated configuration context.
public virtual string DecryptSection(string encryptedXml, ProtectedConfigurationProvider protectionProvider, ProtectedConfigurationSection protectedConfigSection)
Decrypts an encrypted configuration section.
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.
Returns a configuration path based on a location subpath.
Returns a Type representing the type of the configuration.
Returns a string representing the type name of the configuration object.
public virtual void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady)
Returns the name of a Stream object performing I/O tasks on a configuration file.
Returns the name of a Stream object performing I/O tasks on a configuration source.
Returns a FileVersion object representing the version of a Stream object performing I/O tasks on a configuration file.
Instructs the host to impersonate and returns an IDisposable object required internally by the .NET Framework.
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.
Returns a value indicating whether the configuration is above the application configuration in the configuration hierarchy.
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.
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.
Returns a value indicating whether the configuration object supports a location tag.
Returns a value indicating whether a configuration path is to a configuration node whose contents should be treated as a root.
Returns a value indicating whether the configuration path is trusted.
Opens a Stream object to read a configuration file.
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.
Returns a value indicating whether the entire configuration file could be read by a designated Stream object.
Instructs the IInternalConfigHost object to read a designated section of its associated configuration file.
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.
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.