NullConfigureContextualOptions.GetInstance<TOptions> 方法

定义

获取空配置上下文的单一实例。

public:
generic <typename TOptions>
 where TOptions : class static Microsoft::Extensions::Options::Contextual::Provider::IConfigureContextualOptions<TOptions> ^ GetInstance();
public static Microsoft.Extensions.Options.Contextual.Provider.IConfigureContextualOptions<TOptions> GetInstance<TOptions> () where TOptions : class;
static member GetInstance : unit -> Microsoft.Extensions.Options.Contextual.Provider.IConfigureContextualOptions<'Options (requires 'Options : null)> (requires 'Options : null)
Public Shared Function GetInstance(Of TOptions As Class) () As IConfigureContextualOptions(Of TOptions)

类型参数

TOptions

要配置的选项类型。

返回

的无所事实例 IConfigureContextualOptions<TOptions>

适用于