Taal

NamedConfigureFromConfigurationOptions<TOptions> Klas

Definitie

Hiermee configureert u een optie-exemplaar met behulp van Bind(IConfiguration, Object) een IConfiguration.

generic <typename TOptions>
 where TOptions : classpublic ref class NamedConfigureFromConfigurationOptions : Microsoft::Extensions::Options::ConfigureNamedOptions<TOptions>
public class NamedConfigureFromConfigurationOptions<TOptions> : Microsoft.Extensions.Options.ConfigureNamedOptions<TOptions> where TOptions : class
type NamedConfigureFromConfigurationOptions<'Options (requires 'Options : null)> = class
    inherit ConfigureNamedOptions<'Options (requires 'Options : null)>
Public Class NamedConfigureFromConfigurationOptions(Of TOptions)
Inherits ConfigureNamedOptions(Of TOptions)

Type parameters

TOptions

Het type opties dat u wilt binden.

Overname
NamedConfigureFromConfigurationOptions<TOptions>

Constructors

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

Constructor waarmee het IConfiguration exemplaar wordt verbonden.

NamedConfigureFromConfigurationOptions<TOptions>(String, IConfiguration)

Constructor waarmee het IConfiguration exemplaar wordt verbonden.

Eigenschappen

Name Description
Action

Hiermee haalt u de configuratieactie op.

(Overgenomen van ConfigureNamedOptions<TOptions>)
Name

Hiermee haalt u de naam van de opties op.

(Overgenomen van ConfigureNamedOptions<TOptions>)

Methoden

Name Description
Configure(String, TOptions)

Roept de geregistreerde configuratie Action aan als de name overeenkomsten overeenkomen.

(Overgenomen van ConfigureNamedOptions<TOptions>)
Configure(TOptions)

Hiermee configureert u een TOptions exemplaar met de DefaultName.

(Overgenomen van ConfigureNamedOptions<TOptions>)

Van toepassing op