共用方式為


OptionsServiceCollectionExtensions.PostConfigure 方法

定義

多載

PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)

註冊用於初始化特定類型選項的動作。 這些會在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之後執行。

PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>)

註冊用來設定特定選項類型的動作。 這些會在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之後執行。

PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)

來源:
OptionsServiceCollectionExtensions.cs
來源:
OptionsServiceCollectionExtensions.cs
來源:
OptionsServiceCollectionExtensions.cs
來源:
OptionsServiceCollectionExtensions.cs
來源:
OptionsServiceCollectionExtensions.cs

註冊用於初始化特定類型選項的動作。 這些會在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之後執行。

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

類型參數

TOptions

要設定的選項類型。

參數

services
IServiceCollection

要新增服務的 IServiceCollection

configureOptions
Action<TOptions>

用來設定選項的動作。

傳回

IServiceCollection,以便鏈結其他呼叫。

適用於

PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>)

來源:
OptionsServiceCollectionExtensions.cs
來源:
OptionsServiceCollectionExtensions.cs
來源:
OptionsServiceCollectionExtensions.cs
來源:
OptionsServiceCollectionExtensions.cs
來源:
OptionsServiceCollectionExtensions.cs

註冊用來設定特定選項類型的動作。 這些會在 Configure<TOptions>(IServiceCollection, Action<TOptions>) 之後執行。

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

類型參數

TOptions

要設定的選項類型。

參數

services
IServiceCollection

要新增服務的 IServiceCollection

name
String

選項執行個體的名稱。

configureOptions
Action<TOptions>

用來設定選項的動作。

傳回

IServiceCollection,以便鏈結其他呼叫。

適用於