C# Class Frapid.Configuration.ConfigurationManager

Afficher le fichier Open project: frapid/frapid

Méthodes publiques

Méthode Description
GetConfigurationValue ( string configFileName, string key ) : string

Gets the configuration value of the requested key.

ReadConfigurationValue ( string path, string key ) : string

Opens a configuration files and gets the configuration value of the requested key.

SetConfigurationValue ( string path, string key, string value ) : void

Saves appSettings key configuration on the requested file.

Method Details

GetConfigurationValue() public static méthode

Gets the configuration value of the requested key.
public static GetConfigurationValue ( string configFileName, string key ) : string
configFileName string The name of the configuration file.
key string The configuration key to find.
Résultat string

ReadConfigurationValue() public static méthode

Opens a configuration files and gets the configuration value of the requested key.
public static ReadConfigurationValue ( string path, string key ) : string
path string The physical path to the configuration file.
key string The configuration key to find.
Résultat string

SetConfigurationValue() public static méthode

Saves appSettings key configuration on the requested file.
public static SetConfigurationValue ( string path, string key, string value ) : void
path string Path to configuration file.
key string The key to edit.
value string The value to edit the key with.
Résultat void