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에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET