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
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.