NullConfigureContextualOptions.GetInstance<TOptions> Method

Definition

Gets a singleton instance of an empty configuration context.

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)

Type Parameters

TOptions

The options type to configure.

Returns

A do-nothing instance of IConfigureContextualOptions<TOptions>.

Applies to