Enum ConfigLocations
- Namespace
- Terminal.Gui.Configuration
- Assembly
- Terminal.Gui.dll
Describes the location of the configuration settings. The constants can be combined (bitwise) to specify multiple locations. The more significant the bit, the higher the priority the location, meaning that the last location will override the earlier ones.
[Flags]
public enum ConfigLocations
Fields
All = HardCoded | LibraryResources | AppResources | Runtime | GlobalCurrent | GlobalHome | AppCurrent | AppHome
This constant is a combination of all locations
AppCurrent = 64
App settings in the current directory (e.g.
./.tui/MyApp.config.json
).AppHome = 128
App settings in the home directory (e.g.
~/.tui/MyApp.config.json
).AppResources = 4
App resources (e.g.
MyApp.Resources.config.json
). See AppSettingsScope.GlobalCurrent = 16
Global settings in the current directory (e.g.
./.tui/config.json
).GlobalHome = 32
Global settings in the home directory (e.g.
~/.tui/config.json
).HardCoded = 1
Settings of the ConfigurationPropertyAttribute static properites when the module is initiallly loaded.
When the module is initialized, the ConfigurationManager will retrieve the values of the configuration properties from their corresponding static properties. These are default settigs available even if IsEnabled is false.
LibraryResources = 2
Settings defined in
Terminal.Gui.dll
's resources (Terminal.Gui.Resources.config.json
).None = 0
No locaitons are specified. This is the default value.
Runtime = 8
Settings in the RuntimeConfig static property.