Table of Contents

Class ConfigurationPropertyAttribute

Namespace
Terminal.Gui.Configuration
Assembly
Terminal.Gui.dll

An attribute indicating a property is managed by ConfigurationManager.

[AttributeUsage(AttributeTargets.Property)]
public class ConfigurationPropertyAttribute : Attribute
Inheritance
ConfigurationPropertyAttribute
Inherited Members

Examples

[ConfigurationProperty(Scope = typeof(AppSettingsScope))] public static string? MyProperty { get; set; } = "MyValue";

Properties

OmitClassName

If true, the property will be serialized to the configuration file using only the property name as the key. If false, the property will be serialized to the configuration file using the property name pre-pended with the classname (e.g. Application.UseSystemConsole).

Scope

Specifies the scope of the property. If null then AppSettingsScope will be used.