Keyoti Search for ASP.NET API Docs
ConfigurationManager Class
API DocumentationKeyoti.SearchEngineConfigurationManager
Keyoti Search for ASP.NET 2010
Retrieves settings from Configuration.xml file and fills a Configuration instance.
Declaration Syntax
C#Visual BasicVisual C++
public class ConfigurationManager
Public Class ConfigurationManager
public ref class ConfigurationManager
Members
All MembersConstructorsMethods



IconMemberDescription
ConfigurationManager(String)
Creates a new instance.

CleanCollections(Configuration)
Clears all config collections

CreateConfigurationXmlWithDefaultSettings(String)
Creates Configuration.xml file, if it doesn't exist. Write in default settings

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(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()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(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

SaveSettings(Configuration)
Saves the new edited settings (from Configuration object) to configuration.xml

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
ValidateConfiguration(Configuration)
Checks whether the minimum configuration settings are valid.

Remarks
Provides a simple way to persist and retrieve Configuration settings.
Examples
Load configuration from XML file.
CopyC#
ConfigurationManager cm = new ConfigurationManager( Server.MapPath("config.xml") );
Configuration configuration = cm.RetrieveConfiguration();
Examples
Save configuration properties set in the Configuration class to config.xml
CopyC#
ConfigurationManager cm = new ConfigurationManager( Server.MapPath("config.xml") );
            cm.SaveSettings(configuration);
- Note the config.xml file must have write permission for ASPNET user in web environments.
Inheritance Hierarchy
Object
ConfigurationManager

Assembly: Keyoti2.SearchEngine.Core (Module: Keyoti2.SearchEngine.Core) Version: 2010.4.1.609