INamedContextualOptions<TOptions,TContext> Interface
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Biedt functionaliteit voor het ophalen van benoemde geconfigureerde TOptions exemplaren.
generic <typename TOptions, typename TContext>
where TOptions : class where TContext : IOptionsContextpublic interface class INamedContextualOptions : Microsoft::Extensions::Options::Contextual::IContextualOptions<TOptions, TContext>
public interface INamedContextualOptions<TOptions,TContext> : Microsoft.Extensions.Options.Contextual.IContextualOptions<TOptions,TContext> where TOptions : class where TContext : IOptionsContext
type INamedContextualOptions<'Options, 'Context (requires 'Options : null and 'Context :> IOptionsContext)> = interface
interface IContextualOptions<'Options, 'Context (requires 'Options : null and 'Context :> IOptionsContext)>
Public Interface INamedContextualOptions(Of TOptions, TContext)
Implements IContextualOptions(Of TOptions, TContext)
Type parameters
- TOptions
Het type opties dat wordt aangevraagd.
- TContext
Een type waarmee de context voor deze aanvraag wordt gedefinieerd.
- Implementeringen
Methoden
| Name | Description |
|---|---|
| GetAsync(String, TContext, CancellationToken) |
Hiermee haalt u de benoemde geconfigureerde |
| GetAsync(TContext, CancellationToken) |
Hiermee haalt u het geconfigureerde |