LoggerProviderOptions.RegisterProviderOptions<TOptions,TProvider> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
TProviderの設定をTOptions型に読み込む必要があることを示します。
public:
generic <typename TOptions, typename TProvider>
where TOptions : class static void RegisterProviderOptions(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding TOptions to configuration values may require generating dynamic code at runtime.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("TOptions's dependent types may have their members trimmed. Ensure all required members are preserved.")]
public static void RegisterProviderOptions<TOptions,TProvider>(Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class;
public static void RegisterProviderOptions<TOptions,TProvider>(Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TOptions : class;
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Binding TOptions to configuration values may require generating dynamic code at runtime.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("TOptions's dependent types may have their members trimmed. Ensure all required members are preserved.")>]
static member RegisterProviderOptions : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit (requires 'Options : null)
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)
型パラメーター
- TOptions
options クラス。
- TProvider
プロバイダー クラス。
パラメーター
- services
- IServiceCollection
登録する IServiceCollection 。
- 属性