Compartir a través de


FileBasedConfigurationSource Members

Include Protected Members
Include Inherited Members

The FileBasedConfigurationSource type exposes the following members.

Constructors

  Name Description
Ff668310.protmethod(en-us,PandP.50).gif FileBasedConfigurationSource
Initializes a new instance of the FileBasedConfigurationSource class.

Methods

  Name Description
Ff668310.pubmethod(en-us,PandP.50).gif Add
Adds a ConfigurationSection to the configuration and saves the configuration source.
Ff668310.pubmethod(en-us,PandP.50).gif AddSectionChangeHandler
Adds a handler to be called when changes to section
sectionName
are detected.
Ff668310.pubmethod(en-us,PandP.50).gif Dispose Overloaded.
Ff668310.pubmethod(en-us,PandP.50).gif DoAdd
When implemented in a derived class, adds a ConfigurationSection to the configuration and saves the configuration source.
Ff668310.protmethod(en-us,PandP.50).gif DoGetSection
Retrieves the specified ConfigurationSection from the configuration file.
Ff668310.pubmethod(en-us,PandP.50).gif DoRemove
When implemented in a derived class, removes a ConfigurationSection from the configuration and saves the configuration source.
Ff668310.pubmethod(en-us,PandP.50).gif Equals (Inherited from Object.)
Ff668310.protmethod(en-us,PandP.50).gif Finalize (Inherited from Object.)
Ff668310.pubmethod(en-us,PandP.50).gif GetHashCode (Inherited from Object.)
Ff668310.pubmethod(en-us,PandP.50).gif GetSection
Retrieves the specified ConfigurationSection from the configuration file, and starts watching for its changes if not watching already.
Ff668310.pubmethod(en-us,PandP.50).gif GetType (Inherited from Object.)
Ff668310.protmethod(en-us,PandP.50).gif MemberwiseClone (Inherited from Object.)
Ff668310.protmethod(en-us,PandP.50).gif NotifyUpdatedSections
Ff668310.protmethod(en-us,PandP.50).gif OnSourceChanged
Raises the SourceChanged event.
Ff668310.protmethod(en-us,PandP.50).gif RefreshAndValidateSections
Refreshes the configuration sections from the main configuration file and determines which sections have suffered notifications and should be notified to registered handlers.
Ff668310.protmethod(en-us,PandP.50).gif RefreshExternalSections
Refreshes the configuration sections from an external configuration file.
Ff668310.pubmethod(en-us,PandP.50).gif Remove
Removes a ConfigurationSection from the configuration and saves the configuration source.
Ff668310.pubmethod(en-us,PandP.50).gif RemoveSectionChangeHandler
Remove a handler to be called when changes to section
sectionName
are detected.
Ff668310.pubmethod(en-us,PandP.50).gif ToString (Inherited from Object.)
Ff668310.protmethod(en-us,PandP.50).gifFf668310.static(en-us,PandP.50).gif ValidateArgumentsAndFileExists
Validates the parameters required to save a configuration section.

Fields

  Name Description
Ff668310.pubfield(en-us,PandP.50).gifFf668310.static(en-us,PandP.50).gif NullConfigSource
ConfigSource value for sections that existed in configuration but were later removed.

Properties

  Name Description
Ff668310.protproperty(en-us,PandP.50).gif ConfigurationFilePath
Gets the path of the configuration file for the configuration source.

Events

  Name Description
Ff668310.pubevent(en-us,PandP.50).gif SourceChanged
Event raised when any section in this configuration source has changed.

Explicit Interface Implementations

  Name Description
Ff668310.pubinterface(en-us,PandP.50).gifFf668310.privmethod(en-us,PandP.50).gif IConfigurationSourceTest.ConfigSourceChanged
Ff668310.pubinterface(en-us,PandP.50).gifFf668310.privproperty(en-us,PandP.50).gif IConfigurationSourceTest.ConfigSourceWatcherMappings
Ff668310.pubinterface(en-us,PandP.50).gifFf668310.privmethod(en-us,PandP.50).gif IConfigurationSourceTest.ExternalConfigSourceChanged
Ff668310.pubinterface(en-us,PandP.50).gifFf668310.privproperty(en-us,PandP.50).gif IConfigurationSourceTest.WatchedConfigSources
Ff668310.pubinterface(en-us,PandP.50).gifFf668310.privproperty(en-us,PandP.50).gif IConfigurationSourceTest.WatchedSections

See Also

FileBasedConfigurationSource Class

Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace