共用方式為


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>

適用於