Freigeben über


NullConfigureContextualOptions.GetInstance<TOptions> Methode

Definition

Ruft einen Singleton-instance eines leeren Konfigurationskontexts ab.

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)

Typparameter

TOptions

Der zu konfigurierende Optionstyp.

Gibt zurück

Ein Do-Nothing-instance von IConfigureContextualOptions<TOptions>.

Gilt für: