OptionsBuilderConfigurationExtensions.Bind Metoda

Definice

Přetížení

Bind<TOptions>(OptionsBuilder<TOptions>, IConfiguration)

Zaregistruje instanci konfigurace, která TOptions se sváže.

Bind<TOptions>(OptionsBuilder<TOptions>, IConfiguration, Action<BinderOptions>)

Zaregistruje instanci konfigurace, která TOptions se sváže.

Bind<TOptions>(OptionsBuilder<TOptions>, IConfiguration)

Zdroj:
OptionsBuilderConfigurationExtensions.cs
Zdroj:
OptionsBuilderConfigurationExtensions.cs
Zdroj:
OptionsBuilderConfigurationExtensions.cs
Zdroj:
OptionsBuilderConfigurationExtensions.cs

Zaregistruje instanci konfigurace, která TOptions se sváže.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Bind(Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ optionsBuilder, Microsoft::Extensions::Configuration::IConfiguration ^ config);
public static Microsoft.Extensions.Options.OptionsBuilder<TOptions> Bind<TOptions> (this Microsoft.Extensions.Options.OptionsBuilder<TOptions> optionsBuilder, Microsoft.Extensions.Configuration.IConfiguration config) where TOptions : class;
static member Bind : Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'Options : null)
<Extension()>
Public Function Bind(Of TOptions As Class) (optionsBuilder As OptionsBuilder(Of TOptions), config As IConfiguration) As OptionsBuilder(Of TOptions)

Parametry typu

TOptions

Typ možností, který se má nakonfigurovat.

Parametry

optionsBuilder
OptionsBuilder<TOptions>

Tvůrce možností, do které chcete přidat služby.

config
IConfiguration

Konfigurace je vázaná.

Návraty

Aby OptionsBuilder<TOptions> bylo možné zřetězovat další volání.

Platí pro

Bind<TOptions>(OptionsBuilder<TOptions>, IConfiguration, Action<BinderOptions>)

Zdroj:
OptionsBuilderConfigurationExtensions.cs
Zdroj:
OptionsBuilderConfigurationExtensions.cs
Zdroj:
OptionsBuilderConfigurationExtensions.cs
Zdroj:
OptionsBuilderConfigurationExtensions.cs

Zaregistruje instanci konfigurace, která TOptions se sváže.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Bind(Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ optionsBuilder, Microsoft::Extensions::Configuration::IConfiguration ^ config, Action<Microsoft::Extensions::Configuration::BinderOptions ^> ^ configureBinder);
public static Microsoft.Extensions.Options.OptionsBuilder<TOptions> Bind<TOptions> (this Microsoft.Extensions.Options.OptionsBuilder<TOptions> optionsBuilder, Microsoft.Extensions.Configuration.IConfiguration config, Action<Microsoft.Extensions.Configuration.BinderOptions>? configureBinder) where TOptions : class;
static member Bind : Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Configuration.BinderOptions> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'Options : null)
<Extension()>
Public Function Bind(Of TOptions As Class) (optionsBuilder As OptionsBuilder(Of TOptions), config As IConfiguration, configureBinder As Action(Of BinderOptions)) As OptionsBuilder(Of TOptions)

Parametry typu

TOptions

Typ možností, který se má nakonfigurovat.

Parametry

optionsBuilder
OptionsBuilder<TOptions>

Tvůrce možností, do které chcete přidat služby.

config
IConfiguration

Konfigurace je vázaná.

configureBinder
Action<BinderOptions>

Používá se ke konfiguraci .BinderOptions

Návraty

Aby OptionsBuilder<TOptions> bylo možné zřetězovat další volání.

Platí pro