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 حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.