DesignConfigurationSource Members

Include Protected Members
Include Inherited Members

The DesignConfigurationSource type exposes the following members.

Constructors

  Name Description
Public method DesignConfigurationSource
Initializes a new instance of DesignConfigurationSource based on file path.

Methods

  Name Description
Public method Add(String, ConfigurationSection)
Adds a ConfigurationSection to the configuration and saves the configuration source.
(Inherited from FileBasedConfigurationSource.)
Public method Add(String, ConfigurationSection, String)
Adds a ConfigurationSection to the configuration and saves the configuration source using encryption.
(Inherited from FileConfigurationSource.)
Public method AddLocalSection
Adds a local section to the configuration source.
Public method AddSectionChangeHandler
Adds a handler to be called when changes to section
sectionName
are detected.
(Inherited from FileBasedConfigurationSource.)
Public methodStatic member CreateDesignSource
Creates a new instance of DesignConfigurationSource based on rootSource and filePath.
Public method Dispose()
Releases the resources used by the change watchers.
(Inherited from FileBasedConfigurationSource.)
Protected method Dispose(Boolean)
Releases the resources used by the change watchers.
(Inherited from FileBasedConfigurationSource.)
Public method DoAdd
Adds a ConfigurationSection to the configuration and saves the configuration source.
(Inherited from FileConfigurationSource.)
Protected method DoGetSection
Retrieves the specified ConfigurationSection from the configuration file.
(Inherited from FileConfigurationSource.)
Public method DoRemove
Removes a ConfigurationSection from the configuration and saves the configuration source.
(Inherited from FileConfigurationSource.)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetLocalSection
Retrieves a local section from the configuration source.
Public method GetSection
Retrieves the specified ConfigurationSection from the configuration file, and starts watching for its changes if not watching already.
(Inherited from FileBasedConfigurationSource.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method NotifyUpdatedSections
(Inherited from FileBasedConfigurationSource.)
Protected method OnSourceChanged
Raises the SourceChanged event.
(Inherited from FileBasedConfigurationSource.)
Protected method RefreshAndValidateSections
Refreshes the configuration sections from the main configuration file and determines which sections have suffered notifications and should be notified to registered handlers.
(Inherited from FileConfigurationSource.)
Protected method RefreshExternalSections
Refreshes the configuration sections from an external configuration file.
(Inherited from FileConfigurationSource.)
Public method Remove
Removes a ConfigurationSection from the configuration and saves the configuration source.
(Inherited from FileBasedConfigurationSource.)
Public method RemoveLocalSection
Removes a local section from the configuration source.
Public method RemoveSectionChangeHandler
Remove a handler to be called when changes to section
sectionName
are detected.
(Inherited from FileBasedConfigurationSource.)
Public method Save(String, ConfigurationSection)
This method supports the Enterprise Library infrastructure and is not intended to be used directly from your code. Adds or replaces configurationSection under name section in the configuration and saves the configuration file.
(Inherited from FileConfigurationSource.)
Public method Save(String, ConfigurationSection, String)
This method supports the Enterprise Library infrastructure and is not intended to be used directly from your code. Adds or replaces configurationSection under name section in the configuration file and saves the configuration file using encryption.
(Inherited from FileConfigurationSource.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  Name Description
Public property ConfigurationFilePath
Gets the path of the configuration file for the configuration source.

Events

  Name Description
Public event SourceChanged
Event raised when any section in this configuration source has changed.
(Inherited from FileBasedConfigurationSource.)

See Also

DesignConfigurationSource Class

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Design Namespace