LoggerProviderOptions.RegisterProviderOptions<TOptions,TProvider> Method

Definition

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