LoggerProviderOptions.RegisterProviderOptions<TOptions,TProvider> 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.
Indicates that settings for TProvider
should be loaded into TOptions
type.
public:
generic <typename TOptions, typename TProvider>
where TOptions : class static void RegisterProviderOptions(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static void RegisterProviderOptions<TOptions,TProvider> (Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class;
static member RegisterProviderOptions : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit (requires 'Options : null)
Public Shared Sub RegisterProviderOptions(Of TOptions As Class, TProvider As Class) (services As IServiceCollection)
Type Parameters
- TOptions
The options class
- TProvider
The provider class
Parameters
- services
- IServiceCollection
The IServiceCollection to register on.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.