ConfigureNamedOptions<TOptions,TDep1,TDep2,TDep3>.Configure 方法

定义

重载

Configure(TOptions)

调用以使用 DefaultName 配置 TOptions 实例。

Configure(String, TOptions)

如果 name 匹配,则调用已注册的配置 Action

Configure(TOptions)

Source:
ConfigureNamedOptions.cs
Source:
ConfigureNamedOptions.cs
Source:
ConfigureNamedOptions.cs

调用以使用 DefaultName 配置 TOptions 实例。

public:
 virtual void Configure(TOptions options);
public void Configure (TOptions options);
abstract member Configure : 'Options -> unit
override this.Configure : 'Options -> unit
Public Sub Configure (options As TOptions)

参数

options
TOptions

要配置的选项实例。

实现

适用于

Configure(String, TOptions)

Source:
ConfigureNamedOptions.cs
Source:
ConfigureNamedOptions.cs
Source:
ConfigureNamedOptions.cs

如果 name 匹配,则调用已注册的配置 Action

public:
 virtual void Configure(System::String ^ name, TOptions options);
public virtual void Configure (string name, TOptions options);
public virtual void Configure (string? name, TOptions options);
abstract member Configure : string * 'Options -> unit
override this.Configure : string * 'Options -> unit
Public Overridable Sub Configure (name As String, options As TOptions)

参数

name
String

正在配置的选项实例的名称。

options
TOptions

要配置的选项实例。

实现

适用于