Partilhar via


NamedConfigureFromConfigurationOptions<TOptions> Construtores

Definição

Sobrecargas

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration)

Construtor que usa a instância de IConfiguration para se associar.

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

Construtor que usa a instância de IConfiguration para se associar.

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration)

Construtor que usa a instância de IConfiguration para se associar.

public:
 NamedConfigureFromConfigurationOptions(System::String ^ name, Microsoft::Extensions::Configuration::IConfiguration ^ config);
public NamedConfigureFromConfigurationOptions (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)

Parâmetros

name
String

O nome da instância de opções.

config
IConfiguration

A instância IConfiguration.

Aplica-se a

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

Construtor que usa a instância de IConfiguration para se associar.

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);
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))

Parâmetros

name
String

O nome da instância de opções.

config
IConfiguration

A instância IConfiguration.

configureBinder
Action<BinderOptions>

Usado para configurar o BinderOptions.

Aplica-se a