Skip to content

OptionaryAttribute<T> Constructors

ClassConstructors2 members
Declares the configuration section of an options type T from the assembly, for types you don't own.
Declares T under the section derived from its name.
public sealed class OptionaryAttribute<T>
{
public OptionaryAttribute()
{
// ...
}
}
Declares T under section.
public sealed class OptionaryAttribute<T>
{
public OptionaryAttribute(
string section)
{
// ...
}
}
sectionstringThe section path, e.g. "Greetings" or "Http:Retry".