共用方式為


INamedContextualOptions<TOptions,TContext> 介面

定義

用來擷取已設定 TOptions 的具名實例。

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)

類型參數

TOptions

要求的選項類型。

TContext

定義此要求內容的型別。

實作

方法

GetAsync(String, TContext, CancellationToken)

取得具名的已設定 TOptions 實例。

GetAsync(TContext, CancellationToken)

取得已設定 TOptions 的實例。

(繼承來源 IContextualOptions<TOptions,TContext>)

適用於