NamedConfigureFromConfigurationOptions<TOptions> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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>)
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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET