IOptionsSnapshot<TOptions> Schnittstelle

Definition

Wird für den Zugriff auf den Wert von TOptions für die Lebensdauer einer Anforderung verwendet.

generic <typename TOptions>
 where TOptions : classpublic interface class IOptionsSnapshot : Microsoft::Extensions::Options::IOptions<TOptions>
public interface IOptionsSnapshot<out TOptions> : Microsoft.Extensions.Options.IOptions<out TOptions> where TOptions : class
type IOptionsSnapshot<'Options (requires 'Options : null)> = interface
    interface IOptions<'Options (requires 'Options : null)>
Public Interface IOptionsSnapshot(Of Out TOptions)
Implements IOptions(Of Out TOptions)

Typparameter

TOptions

Optionstyp.

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

Eigenschaften

Name Beschreibung
Value

Ruft die konfigurierte Standardinstanz ab TOptions .

(Geerbt von IOptions<TOptions>)

Methoden

Name Beschreibung
Get(String)

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

Gilt für: