IConfigureNamedOptions<TOptions> Schnittstelle

Definition

Stellt etwas dar, das den TOptions Typ konfiguriert.

generic <typename TOptions>
 where TOptions : classpublic interface class IConfigureNamedOptions : Microsoft::Extensions::Options::IConfigureOptions<TOptions>
public interface IConfigureNamedOptions<in TOptions> : Microsoft.Extensions.Options.IConfigureOptions<in TOptions> where TOptions : class
type IConfigureNamedOptions<'Options (requires 'Options : null)> = interface
    interface IConfigureOptions<'Options (requires 'Options : null)>
Public Interface IConfigureNamedOptions(Of In TOptions)
Implements IConfigureOptions(Of In TOptions)

Typparameter

TOptions

Der zu konfigurierende Optionstyp.

Dieser Typparameter ist kontravariant. Das bedeutet, dass Sie entweder den angegebenen Typ oder einen weniger abgeleiteten Typ verwenden können. Weitere Informationen zu Kovarianz und Kontravarianz finden Sie unter Kovarianz und Kontravarianz in Generics.
Abgeleitet
Implementiert

Methoden

Name Beschreibung
Configure(String, TOptions)

Konfiguriert eine TOptions Instanz.

Configure(TOptions)

Konfiguriert eine TOptions Instanz.

(Geerbt von IConfigureOptions<TOptions>)

Gilt für: