IOptionsSnapshot<TOptions> Schnittstelle

Definition

Wird verwendet, um für die Lebensdauer einer Anforderung auf den Wert von TOptions zuzugreifen.

generic <typename TOptions>
public interface class IOptionsSnapshot
generic <typename TOptions>
 where TOptions : class, gcnew()public interface class IOptionsSnapshot : Microsoft::Extensions::Options::IOptions<TOptions>
generic <typename TOptions>
 where TOptions : classpublic interface class IOptionsSnapshot : Microsoft::Extensions::Options::IOptions<TOptions>
public interface IOptionsSnapshot<out TOptions>
public interface IOptionsSnapshot<out TOptions> : Microsoft.Extensions.Options.IOptions<out TOptions> where TOptions : class, new()
public interface IOptionsSnapshot<out TOptions> : Microsoft.Extensions.Options.IOptions<out TOptions> where TOptions : class
type IOptionsSnapshot<'Options> = interface
type IOptionsSnapshot<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))> = interface
    interface IOptions<'Options (requires 'Options : null and 'Options : (new : unit -> 'Options))>
type IOptionsSnapshot<'Options (requires 'Options : null)> = interface
    interface IOptions<'Options (requires 'Options : null)>
Public Interface IOptionsSnapshot(Of Out TOptions)
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

Value

Gibt den Wert der TOptions zurück, die ein Mal berechnet werden.

Methoden

Get(String)

Gibt eine konfigurierte TOptions-Instanz mit dem angegebenen Namen zurück.

Gilt für: