Bagikan melalui


OptionsBuilderConfigurationExtensions.Bind Metode

Definisi

Overload

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

Mendaftarkan instans konfigurasi yang TOptions akan mengikat.

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

Mendaftarkan instans konfigurasi yang TOptions akan mengikat.

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

Sumber:
OptionsBuilderConfigurationExtensions.cs
Sumber:
OptionsBuilderConfigurationExtensions.cs
Sumber:
OptionsBuilderConfigurationExtensions.cs
Sumber:
OptionsBuilderConfigurationExtensions.cs

Mendaftarkan instans konfigurasi yang TOptions akan mengikat.

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)

Jenis parameter

TOptions

Jenis opsi yang akan dikonfigurasi.

Parameter

optionsBuilder
OptionsBuilder<TOptions>

Penyusun opsi untuk menambahkan layanan.

config
IConfiguration

Konfigurasi terikat.

Mengembalikan

OptionsBuilder<TOptions> Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk

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

Sumber:
OptionsBuilderConfigurationExtensions.cs
Sumber:
OptionsBuilderConfigurationExtensions.cs
Sumber:
OptionsBuilderConfigurationExtensions.cs
Sumber:
OptionsBuilderConfigurationExtensions.cs

Mendaftarkan instans konfigurasi yang TOptions akan mengikat.

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)

Jenis parameter

TOptions

Jenis opsi yang akan dikonfigurasi.

Parameter

optionsBuilder
OptionsBuilder<TOptions>

Penyusun opsi untuk menambahkan layanan.

config
IConfiguration

Konfigurasi terikat.

configureBinder
Action<BinderOptions>

Digunakan untuk mengonfigurasi BinderOptions.

Mengembalikan

OptionsBuilder<TOptions> Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk