Share via


ConfigurationChangeFileWatcher Members

Include Protected Members
Include Inherited Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The ConfigurationChangeFileWatcher type exposes the following members.

Constructors

  Name Description
Public method ConfigurationChangeFileWatcher

Initialize a new ConfigurationChangeFileWatcher class with the path to the configuration file and the name of the section

Methods

  Name Description
Protected method BuildEventData
Builds the change event data, including the full path of the watched file
(Overrides ConfigurationChangeWatcher.BuildEventData().)
Protected method BuildThreadName
Returns the string that should be assigned to the thread used by the watcher
(Overrides ConfigurationChangeWatcher.BuildThreadName().)
Public method Dispose

Releases the unmanaged resources used by the ConfigurationChangeFileWatcher and optionally releases the managed resources.

(Inherited from ConfigurationChangeWatcher.)
Protected method Disposing

Releases the unmanaged resources used by the ConfigurationChangeFileWatcher and optionally releases the managed resources.

(Inherited from ConfigurationChangeWatcher.)
Public method Equals (Inherited from Object.)
Protected method Finalize

Allows an ConfigurationChangeFileWatcher to attempt to free resources and perform other cleanup operations before the ConfigurationChangeFileWatcher is reclaimed by garbage collection.

(Overrides ConfigurationChangeWatcher.Finalize().)
Protected method GetCurrentLastWriteTime

Returns the DateTime of the last change of the information watched

The information is retrieved using the watched file modification timestamp

(Overrides ConfigurationChangeWatcher.GetCurrentLastWriteTime().)
Protected method GetEventSourceName
Returns the source name to use when logging events
(Overrides ConfigurationChangeWatcher.GetEventSourceName().)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnConfigurationChanged

Raises the ConfigurationChanged event.

(Inherited from ConfigurationChangeWatcher.)
Public method StartWatching

Starts watching the configuration file.

(Inherited from ConfigurationChangeWatcher.)
Public method StopWatching

Stops watching the configuration file.

(Inherited from ConfigurationChangeWatcher.)
Public method ToString (Inherited from Object.)

Properties

  Name Description
Public property SectionName

Gets the name of the configuration section being watched.

(Overrides ConfigurationChangeWatcher.SectionName.)

Events

  Name Description
Public event ConfigurationChanged
Event raised when the underlying persistence mechanism for configuration notices that the persistent representation of configuration information has changed.
(Inherited from ConfigurationChangeWatcher.)

See Also

ConfigurationChangeFileWatcher Class

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Storage Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.