DuplicateKeyPolicy Enum
Definition
- Namespace
- Bodu.Text.Configuration
- Assembly
- Bodu.Text.Configuration.dll
- Package
- Bodu.Text.Configuration 1.0.0
- Source
- DuplicateKeyPolicy.cs
Specifies how the configuration parser resolves a key that appears more than once within the same section.
public enum DuplicateKeyPolicy
- Extension Methods
Fields
LastWins = 0The last occurrence of a duplicated key wins; earlier values are discarded. This is the default.
FirstWins = 1The first occurrence of a duplicated key is retained; subsequent occurrences are silently ignored.
Disallowed = 2Any duplicated key is rejected, surfacing as a ConfigurationParseException or a collected diagnostic depending on the active ConfigurationDiagnosticMode.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |