Retrieves settings from Configuration.xml file and fills a Configuration instance.

C# | C# | Visual Basic | Visual Basic | Visual C++ | Visual C++ | F# | F# |
public class ConfigurationManager
public class ConfigurationManager
Public Class ConfigurationManager
Public Class ConfigurationManager
public ref class ConfigurationManager
public ref class ConfigurationManager
type ConfigurationManager = class end
type ConfigurationManager = class end

All Members | Constructors | Methods | |||
Icon | Member | Description |
---|---|---|
![]() | ConfigurationManager(String) |
Creates a new instance.
|
![]() | CleanCollections(Configuration, Boolean, Configuration) |
Clears all config collections
|
![]() | CreateConfigurationXmlWithDefaultSettings(String) |
Creates Configuration.xml file, if it doesn't exist. Write in default settings
|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize()()()() | (Inherited from Object.) |
![]() ![]() | GetConfigurationProperties()()()() |
Returns a hashtable of configuration properties in their corresponding category
|
![]() | GetDataAccess(Configuration) |
The data-access layer, the type returned depends on the setting of Configuration.DbType.
|
![]() | GetHashCode()()()() | (Inherited from Object.) |
![]() | GetType()()()() | (Inherited from Object.) |
![]() | MemberwiseClone()()()() | (Inherited from Object.) |
![]() | RetrieveConfiguration()()()() | Obsolete.
Loads the configuration settings in Configuration.xml into the Configuration instance
|
![]() | RetrieveConfiguration(Configuration) |
Loads the configuration settings in Configuration.xml into the Configuration instance
|
![]() | RetrieveConfiguration(Configuration, Boolean) |
Loads the configuration settings in Configuration.xml into the Configuration instance
|
![]() | SaveSettings(Configuration) |
Saves the new edited settings (from Configuration object) to configuration.xml
|
![]() | ToString()()()() | (Inherited from Object.) |
![]() | ValidateConfiguration(Configuration) |
Checks whether the minimum configuration settings are valid.
|

Provides a simple way to persist and retrieve Configuration settings.

Load configuration from XML file.
![]() | |
---|---|
ConfigurationManager cm = new ConfigurationManager( Server.MapPath("config.xml") ); Configuration configuration = cm.RetrieveConfiguration(); |

Save configuration properties set in the Configuration class to config.xml
- Note the config.xml file must have write permission for ASPNET user in web environments.
![]() | |
---|---|
ConfigurationManager cm = new ConfigurationManager( Server.MapPath("config.xml") ); cm.SaveSettings(configuration); |

Object | |
![]() | ConfigurationManager |
Assembly: Keyoti4.SearchEngine.Core (Module: Keyoti4.SearchEngine.Core.dll) Version: 2015.6.15.120