OptionsServiceCollectionExtensions.Configure Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Name | Description |
|---|---|
| Configure<TOptions>(IServiceCollection, Action<TOptions>) |
Registreert een actie die wordt gebruikt om een bepaald type opties te configureren. Opmerking: deze worden voor alles PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)uitgevoerd. |
| Configure<TOptions>(IServiceCollection, String, Action<TOptions>) |
Registreert een actie die wordt gebruikt om een bepaald type opties te configureren. Opmerking: deze worden voor alles PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)uitgevoerd. |
Configure<TOptions>(IServiceCollection, Action<TOptions>)
Registreert een actie die wordt gebruikt om een bepaald type opties te configureren. Opmerking: deze worden voor alles PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)uitgevoerd.
public:
generic <typename TOptions>
where TOptions : class[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ Configure(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<TOptions> ^ configureOptions);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<TOptions> configureOptions) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<'Options (requires 'Options : null)> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, configureOptions As Action(Of TOptions)) As IServiceCollection
Type parameters
- TOptions
Het type opties dat moet worden geconfigureerd.
Parameters
- services
- IServiceCollection
De IServiceCollection service waaraan u de services wilt toevoegen.
- configureOptions
- Action<TOptions>
De actie die wordt gebruikt om de opties te configureren.
Retouren
De IServiceCollection zodat extra aanroepen kunnen worden gekoppeld.
Van toepassing op
Configure<TOptions>(IServiceCollection, String, Action<TOptions>)
Registreert een actie die wordt gebruikt om een bepaald type opties te configureren. Opmerking: deze worden voor alles PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)uitgevoerd.
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, Action<TOptions> ^ configureOptions);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Configure<TOptions>(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string? name, Action<TOptions> configureOptions) where TOptions : class;
static member Configure : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * Action<'Options (requires 'Options : null)> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Options : null)
<Extension()>
Public Function Configure(Of TOptions As Class) (services As IServiceCollection, name As String, configureOptions As Action(Of TOptions)) As IServiceCollection
Type parameters
- TOptions
Het type opties dat moet worden geconfigureerd.
Parameters
- services
- IServiceCollection
De IServiceCollection service waaraan u de services wilt toevoegen.
- name
- String
De naam van het exemplaar van de opties.
- configureOptions
- Action<TOptions>
De actie die wordt gebruikt om de opties te configureren.
Retouren
De IServiceCollection zodat extra aanroepen kunnen worden gekoppeld.