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 | GlobalHome | GlobalCurrent | AppHome | AppCurrent | Env | RuntimeThis constant is a combination of all locations
AppCurrent = 64App settings in the current directory (e.g.
./.tui/MyApp.config.json).AppHome = 32App settings in the home directory (e.g.
~/.tui/MyApp.config.json).AppResources = 4App resources (e.g.
MyApp.Resources.config.json). See AppSettingsScope.Env = 128Settings from the
TUI_CONFIGenvironment variable.GlobalCurrent = 16Global settings in the current directory (e.g.
./.tui/config.json).GlobalHome = 8Global settings in the home directory (e.g.
~/.tui/config.json).HardCoded = 1Settings of the ConfigurationPropertyAttribute static properties when the module is initially loaded.
When the module is initialized, the ConfigurationManager will retrieve the values of the configuration properties from their corresponding static properties. These are default settings available even if IsEnabled is false.
LibraryResources = 2Settings defined in
Terminal.Gui.dll's resources (Terminal.Gui.Resources.config.json).None = 0No locations are specified. This is the default value.
Runtime = 256Settings in the RuntimeConfig static property.