Partager via


OptionsConfigurationServiceCollectionExtensions.Configure Méthode

Définition

Surcharges

Configure<TOptions>(IServiceCollection, IConfiguration)

Inscrit une instance de configuration sur laquelle les options TOptions sont liées.

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

Inscrit une instance de configuration sur laquelle les options TOptions sont liées.

Configure<TOptions>(IServiceCollection, String, IConfiguration)

Inscrit une instance de configuration sur laquelle les options TOptions sont liées.

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

Inscrit une instance de configuration sur laquelle les options TOptions sont liées.

Configure<TOptions>(IServiceCollection, IConfiguration)

Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs

Inscrit une instance de configuration sur laquelle les options TOptions sont liées.

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

Paramètres de type

TOptions

Type d’options configurées.

Paramètres

services
IServiceCollection

La IServiceCollection à laquelle ajouter les services.

config
IConfiguration

Configuration liée.

Retours

La IServiceCollection afin que des appels supplémentaires puissent être chaînés.

S’applique à

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

Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs

Inscrit une instance de configuration sur laquelle les options TOptions sont liées.

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

Paramètres de type

TOptions

Type d’options configurées.

Paramètres

services
IServiceCollection

La IServiceCollection à laquelle ajouter les services.

config
IConfiguration

Configuration liée.

configureBinder
Action<BinderOptions>

Utilisé pour configurer le BinderOptions.

Retours

La IServiceCollection afin que des appels supplémentaires puissent être chaînés.

S’applique à

Configure<TOptions>(IServiceCollection, String, IConfiguration)

Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs

Inscrit une instance de configuration sur laquelle les options TOptions sont liées.

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

Paramètres de type

TOptions

Type d’options configurées.

Paramètres

services
IServiceCollection

La IServiceCollection à laquelle ajouter les services.

name
String

Nom de l’instance d’options.

config
IConfiguration

Configuration liée.

Retours

La IServiceCollection afin que des appels supplémentaires puissent être chaînés.

S’applique à

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

Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs
Source:
OptionsConfigurationServiceCollectionExtensions.cs

Inscrit une instance de configuration sur laquelle les options TOptions sont liées.

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

Paramètres de type

TOptions

Type d’options configurées.

Paramètres

services
IServiceCollection

La IServiceCollection à laquelle ajouter les services.

name
String

Nom de l’instance d’options.

config
IConfiguration

Configuration liée.

configureBinder
Action<BinderOptions>

Utilisé pour configurer le BinderOptions.

Retours

La IServiceCollection afin que des appels supplémentaires puissent être chaînés.

S’applique à