共用方式為


OptionsConfigurationServiceCollectionExtensions Class

Definition

Extension methods for adding configuration-related options services to the DI container.

public ref class OptionsConfigurationServiceCollectionExtensions abstract sealed
public static class OptionsConfigurationServiceCollectionExtensions
type OptionsConfigurationServiceCollectionExtensions = class
Public Module OptionsConfigurationServiceCollectionExtensions
Inheritance
OptionsConfigurationServiceCollectionExtensions

Methods

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

Registers a configuration instance that TOptions will bind against.

Configure<TOptions>(IServiceCollection, IConfiguration)

Registers a configuration instance that TOptions will bind against.

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

Registers a configuration instance that TOptions will bind against.

Configure<TOptions>(IServiceCollection, String, IConfiguration)

Registers a configuration instance that TOptions will bind against.

Applies to