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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.