OptionsServiceCollectionExtensions.PostConfigureAll<TOptions>(IServiceCollection, Action<TOptions>) メソッド

定義

特定の型のオプションのすべてのインスタンスを後で構成するために使用されるアクションを登録します。Registers an action used to post configure all instances of a particular type of options. メモ:これらはすべての後に実行されますNote: These are run after all ..

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

型パラメーター

TOptions

構成するオプションの種類。The options type to be configured.

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollectionThe IServiceCollection to add the services to.

configureOptions
Action<TOptions>

オプションの構成に使用されるアクション。The action used to configure the options.

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollectionThe IServiceCollection so that additional calls can be chained.

適用対象