IOptionsSnapshot<TOptions> Schnittstelle
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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 |
Gilt für:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für