Class UserInterfaceLanguageSetting
What the setting of the language of the user interface comes to, and what a component says of it when it starts.
public sealed record UserInterfaceLanguageSetting : IEquatable<UserInterfaceLanguageSetting>
- Inheritance
-
UserInterfaceLanguageSetting
- Implements
- Inherited Members
Constructors
UserInterfaceLanguageSetting(UserInterfaceLanguageOutcome, string?, CultureInfo, LogLevel, string?)
What the setting of the language of the user interface comes to, and what a component says of it when it starts.
public UserInterfaceLanguageSetting(UserInterfaceLanguageOutcome Outcome, string? Setting, CultureInfo Culture, LogLevel Level, string? Message)
Parameters
OutcomeUserInterfaceLanguageOutcomeWhat the setting comes to.
SettingstringThe culture name the setting says, trimmed; null when it is empty.
CultureCultureInfoThe language of the user interface it gives: the culture it names, or the machine's language when it names none the platform knows.
LevelLogLevelThe level Message is logged at: Warning for a name that is no culture, otherwise Information; None when there is nothing to say.
MessagestringWhat a component logs once when it starts: in the language the setting names when the platform is translated in it, and otherwise in the language the user interface was in before; null when the setting is empty.
Properties
Culture
The language of the user interface it gives: the culture it names, or the machine's language when it names none the platform knows.
public CultureInfo Culture { get; init; }
Property Value
Level
The level Message is logged at: Warning for a name that is no culture, otherwise Information; None when there is nothing to say.
public LogLevel Level { get; init; }
Property Value
Message
What a component logs once when it starts: in the language the setting names when the platform is translated in it, and otherwise in the language the user interface was in before; null when the setting is empty.
public string? Message { get; init; }
Property Value
Outcome
What the setting comes to.
public UserInterfaceLanguageOutcome Outcome { get; init; }
Property Value
Overrides
Whether the setting decides the language of the user interface: over the machine's, and over the locale a client says.
public bool Overrides { get; }
Property Value
Setting
The culture name the setting says, trimmed; null when it is empty.
public string? Setting { get; init; }