IOptionsMonitorCache<TOptions> Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used by IOptionsMonitor<TOptions> to cache TOptions
instances.
generic <typename TOptions>
where TOptions : classpublic interface class IOptionsMonitorCache
public interface IOptionsMonitorCache<TOptions> where TOptions : class
type IOptionsMonitorCache<'Options (requires 'Options : null)> = interface
Public Interface IOptionsMonitorCache(Of TOptions)
- TOptions
The type of options being requested.
- Derived
Clear() |
Clears all options instances from the cache. |
Get |
Gets a named options instance, or adds a new instance created with |
Try |
Tries to adds a new option to the cache, will return false if the name already exists. |
Try |
Try to remove an options instance. |
Produkt | Versjoner |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: