Skip to content

DovetailConfigurationAttribute<T> Properties

ClassProperties4 members
Declares the configuration section of an options type T from the assembly, for types you don't own.
How the configuration keys are spelled: those of every bound property and constructor parameter of the options type and of the object types nested in it, and the default section path derived from the type name. The default is ConfigurationKeyStyle.Undefined, which keeps the declared names. See ConfigurationKeyStyle.
public ConfigurationKeyStyle KeyStyle { get; set; }
Whether to register IOptions<T> for the type. false only describes the section in the schema. The default is true.
public bool RegisterOptions { get; set; }
SectionSection titled Sectionnullablestring?
The section path, or null for the one derived from the type name.
public string? Section { get; }
Whether to validate the options when the host starts. The default is false.
public bool ValidateOnStart { get; set; }