OptionsConfigurationServiceCollectionExtensions.Configure Methode

Definition

Überlädt

Configure<TOptions>(IServiceCollection, IConfiguration)

Registriert eine Konfigurationsinstanz, an die TOptions gebunden wird.Registers a configuration instance which TOptions will bind against.

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

Registriert eine Konfigurationsinstanz, an die TOptions gebunden wird.Registers a configuration instance which TOptions will bind against.

Configure<TOptions>(IServiceCollection, String, IConfiguration)

Registriert eine Konfigurationsinstanz, an die TOptions gebunden wird.Registers a configuration instance which TOptions will bind against.

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

Registriert eine Konfigurationsinstanz, an die TOptions gebunden wird.Registers a configuration instance which TOptions will bind against.

Configure<TOptions>(IServiceCollection, IConfiguration)

Registriert eine Konfigurationsinstanz, an die TOptions gebunden wird.Registers a configuration instance which TOptions will bind against.

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

Typparameter

TOptions

Der Typ der Optionen, die konfiguriert werden.The type of options being configured.

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.The IServiceCollection to add the services to.

config
IConfiguration

Die Konfiguration, die gebunden wird.The configuration being bound.

Gibt zurück

Die IServiceCollection, sodass weitere Aufrufe verkettet werden können.The IServiceCollection so that additional calls can be chained.

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

Registriert eine Konfigurationsinstanz, an die TOptions gebunden wird.Registers a configuration instance which TOptions will bind against.

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

Typparameter

TOptions

Der Typ der Optionen, die konfiguriert werden.The type of options being configured.

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.The IServiceCollection to add the services to.

config
IConfiguration

Die Konfiguration, die gebunden wird.The configuration being bound.

configureBinder
Action<BinderOptions>

Wird zum Konfigurieren von BinderOptions verwendet.Used to configure the BinderOptions.

Gibt zurück

Die IServiceCollection, sodass weitere Aufrufe verkettet werden können.The IServiceCollection so that additional calls can be chained.

Configure<TOptions>(IServiceCollection, String, IConfiguration)

Registriert eine Konfigurationsinstanz, an die TOptions gebunden wird.Registers a configuration instance which TOptions will bind against.

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

Typparameter

TOptions

Der Typ der Optionen, die konfiguriert werden.The type of options being configured.

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.The IServiceCollection to add the services to.

name
String

Der Name der Optionsinstanz.The name of the options instance.

config
IConfiguration

Die Konfiguration, die gebunden wird.The configuration being bound.

Gibt zurück

Die IServiceCollection, sodass weitere Aufrufe verkettet werden können.The IServiceCollection so that additional calls can be chained.

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

Registriert eine Konfigurationsinstanz, an die TOptions gebunden wird.Registers a configuration instance which TOptions will bind against.

public:
generic <typename TOptions>
 where TOptions : class[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Microsoft::Extensions::Configuration::IConfiguration ^ config, Action<Microsoft::Extensions::Configuration::BinderOptions ^> ^ configureBinder);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string name, Microsoft.Extensions.Configuration.IConfiguration config, Action<Microsoft.Extensions.Configuration.BinderOptions> configureBinder) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Configuration.BinderOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, name As String, config As IConfiguration, configureBinder As Action(Of BinderOptions)) As IServiceCollection

Typparameter

TOptions

Der Typ der Optionen, die konfiguriert werden.The type of options being configured.

Parameter

services
IServiceCollection

Die IServiceCollection, der Dienste hinzugefügt werden sollen.The IServiceCollection to add the services to.

name
String

Der Name der Optionsinstanz.The name of the options instance.

config
IConfiguration

Die Konfiguration, die gebunden wird.The configuration being bound.

configureBinder
Action<BinderOptions>

Wird zum Konfigurieren von BinderOptions verwendet.Used to configure the BinderOptions.

Gibt zurück

Die IServiceCollection, sodass weitere Aufrufe verkettet werden können.The IServiceCollection so that additional calls can be chained.

Gilt für: