NullConfigureContextualOptions.GetInstance<TOptions> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.