OptionsManager<TOptions> Class

Definition

generic <typename TOptions>
 where TOptions : classpublic 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
type OptionsManager<'Options (requires 'Options : null)> = class
    interface IOptions<'Options (requires 'Options : null)>
    interface IOptionsSnapshot<'Options (requires 'Options : null)>
Public Class OptionsManager(Of TOptions)
Implements IOptions(Of TOptions), IOptionsSnapshot(Of TOptions)

Type Parameters

TOptions

Options type.

Inheritance
OptionsManager<TOptions>
Implements

Constructors

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