Condividi tramite


NamedConfigureFromConfigurationOptions<TOptions> Costruttori

Definizione

Overload

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration)

Costruttore che accetta l'istanza di IConfiguration per l'associazione.

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

Costruttore che accetta l'istanza di IConfiguration per l'associazione.

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration)

Costruttore che accetta l'istanza di IConfiguration per l'associazione.

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)

Parametri

name
String

Nome dell'istanza delle opzioni.

config
IConfiguration

Istanza di IConfiguration.

Si applica a

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

Costruttore che accetta l'istanza di IConfiguration per l'associazione.

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

Parametri

name
String

Nome dell'istanza delle opzioni.

config
IConfiguration

Istanza di IConfiguration.

configureBinder
Action<BinderOptions>

Usato per configurare BinderOptions.

Si applica a