OptionsServiceCollectionExtensions.PostConfigureAll<TOptions> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
註冊用於張貼設定特定選項類型的所有執行個體動作。 這些會在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之後執行。
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
要設定的選項類型。
參數
- services
- IServiceCollection
要新增服務的 IServiceCollection。
- configureOptions
- Action<TOptions>
用來設定選項的動作。
傳回
IServiceCollection,以便鏈結其他呼叫。