Partager via


NamedConfigureFromConfigurationOptions<TOptions> Constructors

Definition

Overloads

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration)

Constructor that takes the IConfiguration instance to bind against.

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration, Action<BinderOptions>)

Constructor that takes the IConfiguration instance to bind against.

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration)

Source:
NamedConfigureFromConfigurationOptions.cs
Source:
NamedConfigureFromConfigurationOptions.cs

Constructor that takes the IConfiguration instance to bind against.

public:
 NamedConfigureFromConfigurationOptions(System::String ^ name, Microsoft::Extensions::Configuration::IConfiguration ^ config);
public NamedConfigureFromConfigurationOptions (string? name, Microsoft.Extensions.Configuration.IConfiguration config);
new Microsoft.Extensions.Options.NamedConfigureFromConfigurationOptions<'Options (requires 'Options : null)> : string * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Options.NamedConfigureFromConfigurationOptions<'Options (requires 'Options : null)>
Public Sub New (name As String, config As IConfiguration)

Parameters

name
String

The name of the options instance.

config
IConfiguration

The IConfiguration instance.

Applies to

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration, Action<BinderOptions>)

Source:
NamedConfigureFromConfigurationOptions.cs
Source:
NamedConfigureFromConfigurationOptions.cs

Constructor that takes the IConfiguration instance to bind against.

public:
 NamedConfigureFromConfigurationOptions(System::String ^ name, Microsoft::Extensions::Configuration::IConfiguration ^ config, Action<Microsoft::Extensions::Configuration::BinderOptions ^> ^ configureBinder);
public NamedConfigureFromConfigurationOptions (string? name, Microsoft.Extensions.Configuration.IConfiguration config, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureBinder);
new Microsoft.Extensions.Options.NamedConfigureFromConfigurationOptions<'Options (requires 'Options : null)> : string * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Configuration.BinderOptions> -> Microsoft.Extensions.Options.NamedConfigureFromConfigurationOptions<'Options (requires 'Options : null)>
Public Sub New (name As String, config As IConfiguration, configureBinder As Action(Of BinderOptions))

Parameters

name
String

The name of the options instance.

config
IConfiguration

The IConfiguration instance.

configureBinder
Action<BinderOptions>

Used to configure the BinderOptions.

Applies to