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, където можете също да създавате и преглеждате проблеми и да изтегляте искания. За повече информация вижте нашето ръководство за сътрудник.