OptionsConfigurationServiceCollectionExtensions 类

定义

用于将配置相关选项服务添加到 DI 容器的扩展方法。

public ref class OptionsConfigurationServiceCollectionExtensions abstract sealed
public static class OptionsConfigurationServiceCollectionExtensions
type OptionsConfigurationServiceCollectionExtensions = class
Public Module OptionsConfigurationServiceCollectionExtensions
继承
OptionsConfigurationServiceCollectionExtensions

方法

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

注册 TOptions 将绑定到的配置实例。

Configure<TOptions>(IServiceCollection, IConfiguration)

注册 TOptions 将绑定到的配置实例。

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

注册 TOptions 将绑定到的配置实例。

Configure<TOptions>(IServiceCollection, String, IConfiguration)

注册 TOptions 将绑定到的配置实例。

适用于