Share via


OptionsCache<TOptions> Klasse

Definition

Wird zum Zwischenspeichern von TOptions-Instanzen verwendet.

generic <typename TOptions>
 where TOptions : classpublic ref class OptionsCache : Microsoft::Extensions::Options::IOptionsMonitorCache<TOptions>
public class OptionsCache<TOptions> : Microsoft.Extensions.Options.IOptionsMonitorCache<TOptions> where TOptions : class
type OptionsCache<'Options (requires 'Options : null)> = class
    interface IOptionsMonitorCache<'Options (requires 'Options : null)>
Public Class OptionsCache(Of TOptions)
Implements IOptionsMonitorCache(Of TOptions)

Typparameter

TOptions

Der Typ der angeforderten Optionen.

Vererbung
OptionsCache<TOptions>
Implementiert

Konstruktoren

OptionsCache<TOptions>()

Methoden

Clear()

Löscht alle Optionsinstanzen aus dem Cache.

Equals(Object)

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

(Geerbt von Object)
GetHashCode()

Fungiert als Standardhashfunktion.

(Geerbt von Object)
GetOrAdd(String, Func<TOptions>)

Ruft eine benannte Optionsinstanz ab oder fügt eine neue Instanz hinzu, die mit createOptions erstellt wurde.

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)
TryAdd(String, TOptions)

Versucht, dem Cache eine neue Option hinzufügen. Gibt FALSE zurück, wenn der Name bereits vorhanden ist.

TryRemove(String)

Versucht, eine Optionsinstanz zu entfernen.

Gilt für