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.​Options.​Options
Assembly: Microsoft.Extensions.Options
Inheritance: object → Options
Helper class for options.
Fields and Constants
public static readonly
string
DefaultName
The default name used for options instances: "".
Methods
public static
IOptions<​TOptions>
Create​(TOptions options)
Creates a wrapper around an instance of <typeparamref name="TOptions" /> to return itself as an <see cref="T:Microsoft.Extensions.Options.IOptions`1" /> .
Returns Wrapped options object.
options
Options object.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object