OptionsManager<TOptions> Klasse

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)

Typparameter

TOptions

Der Optionstyp.

Vererbung
OptionsManager<TOptions>
Implementiert

Konstruktoren

Name Beschreibung
OptionsManager<TOptions>(IOptionsFactory<TOptions>)

Initialisiert eine neue Instanz mit den angegebenen Optionenkonfigurationen.

Eigenschaften

Name Beschreibung
Value

Ruft die konfigurierte Standardinstanz TOptions ab (entspricht Get(Options.DefaultName)).

Methoden

Name Beschreibung
Equals(Object)

Bestimmt, ob das angegebene Objekt dem aktuellen Objekt entspricht.

(Geerbt von Object)
Get(String)

Gibt eine konfigurierte TOptions Instanz mit der angegebenen namezurück.

GetHashCode()

Dient als Standardhashfunktion.

(Geerbt von Object)
GetType()

Ruft die Type der aktuellen Instanz ab.

(Geerbt von Object)
MemberwiseClone()

Erstellt eine flache Kopie der aktuellen Object.

(Geerbt von Object)
ToString()

Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.

(Geerbt von Object)

Gilt für: