OptionsManager<TOptions> Class

Definition

generic <typename TOptions>
 where TOptions : class, gcnew()public ref class OptionsManager : Microsoft::Extensions::Options::IOptions<TOptions>, Microsoft::Extensions::Options::IOptionsSnapshot<TOptions>
public class OptionsManager<TOptions> : Microsoft.Extensions.Options.IOptions<TOptions>, Microsoft.Extensions.Options.IOptionsSnapshot<TOptions> where TOptions : class, new()
type OptionsManager<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = class
    interface IOptions<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
    interface IOptionsSnapshot<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
Public Class OptionsManager(Of TOptions)
Implements IOptions(Of TOptions), IOptionsSnapshot(Of TOptions)

Type Parameters

TOptions

Options type.

Inheritance
OptionsManager<TOptions>
Implements

Constructors

OptionsManager<TOptions>(IEnumerable<IConfigureOptions<TOptions>>)

Initializes a new instance with the specified options configurations.

OptionsManager<TOptions>(IOptionsFactory<TOptions>)

Initializes a new instance with the specified options configurations.

Properties

Value

The default configured TOptions instance, equivalent to Get(Options.DefaultName).

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Get(String)

Returns a configured TOptions instance with the given name.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to