Freigeben über


NamedConfigureFromConfigurationOptions<TOptions> Klasse

Definition

Konfiguriert eine Optionsinstanz, indem Bind(IConfiguration, Object) für IConfiguration verwendet wird.

generic <typename TOptions>
 where TOptions : classpublic ref class NamedConfigureFromConfigurationOptions : Microsoft::Extensions::Options::ConfigureNamedOptions<TOptions>
public class NamedConfigureFromConfigurationOptions<TOptions> : Microsoft.Extensions.Options.ConfigureNamedOptions<TOptions> where TOptions : class
type NamedConfigureFromConfigurationOptions<'Options (requires 'Options : null)> = class
    inherit ConfigureNamedOptions<'Options (requires 'Options : null)>
Public Class NamedConfigureFromConfigurationOptions(Of TOptions)
Inherits ConfigureNamedOptions(Of TOptions)

Typparameter

TOptions

Der Typ der zu bindenden Optionen.

Vererbung
NamedConfigureFromConfigurationOptions<TOptions>

Konstruktoren

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration)

Konstruktor, der die IConfiguration Instanz für eine Bindung annimmt.

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration, Action<BinderOptions>)

Konstruktor, der die IConfiguration Instanz für eine Bindung annimmt.

Eigenschaften

Action

Die Konfigurationsaktion.

(Geerbt von ConfigureNamedOptions<TOptions>)
Name

Der Optionsname.

(Geerbt von ConfigureNamedOptions<TOptions>)

Methoden

Configure(String, TOptions)

Ruft die registrierte Action zum Konfigurieren auf, wenn name übereinstimmt.

(Geerbt von ConfigureNamedOptions<TOptions>)
Configure(TOptions)

Wird aufgerufen, um eine TOptions-Instanz mit DefaultName zu konfigurieren.

(Geerbt von ConfigureNamedOptions<TOptions>)
Equals(Object)

Bestimmt, ob das angegebene Objekt gleich dem aktuellen Objekt ist.

(Geerbt von Object)
GetHashCode()

Fungiert als Standardhashfunktion.

(Geerbt von Object)
GetType()

Ruft den Type der aktuellen Instanz ab.

(Geerbt von Object)
MemberwiseClone()

Erstellt eine flache Kopie des aktuellen Object.

(Geerbt von Object)
ToString()

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

(Geerbt von Object)

Gilt für: