Name | Description | |
---|---|---|
ConfigReaderWriter Constructor | Overloaded. |
The following tables list the members exposed by ConfigReaderWriter.
Name | Description | |
---|---|---|
ConfigReaderWriter Constructor | Overloaded. |
Name | Description | |
---|---|---|
CurrentConfiguration | Get the current configuration from the web.config or app.config | |
FilePath | Get the path to the current app.config or web.config or load a configuration file |
Name | Description | |
---|---|---|
AppSettingExists | Returns true if the app setting exists | |
ConnectionStringExists | Returns true if the connection string setting exists | |
ReadAppSetting | Read a setting from the appSettings section of the current app.config or web.config | |
ReadConnectionString | Read a connection string from the connectionStrings section of the current app.config or web.config | |
ReadFromCustomSection | Read a setting from a custom section | |
WriteAppSetting | Write a setting to the appSettings section. If it does not exist it will be added. If it does exist, the value will be replaced. | |
WriteConnectionString | Write a setting to the connectionStrings section. If it does not exist it will be added. If it does exist, the value will be replaced. |