Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​Extensions.​DependencyInjection.​OptionsBuilderExtensions

Assembly: Microsoft.Extensions.Options

Inheritance: object → OptionsBuilderExtensions

Extension methods for adding configuration-related options services to the DI container via <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" /> .

Methods

public static Options.​OptionsBuilder<​TOptions>
ValidateOnStart​(Options.​OptionsBuilder<​TOptions> optionsBuilder)
Enforces options validation check on start rather than at run time.
Returns The <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" /> so that additional calls can be chained.
optionsBuilder The <see cref="T:Microsoft.Extensions.Options.OptionsBuilder`1" /> to configure options instance.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object