OptionsCache<TOptions> Class
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.
Caches TOptions
instances.
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)
- TOptions
The type of options being requested.
- Inheritance
-
OptionsCache<TOptions>
- Implements
Options |
Initializes an instance of the OptionsCache<TOptions> class. |
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. |
Try |
Tries to remove an options instance. |
Produkt | Versionen |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: