OptionsBuilder<TOptions>.Configure 方法

定义

重载

Configure(Action<TOptions>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

Configure<TDep>(Action<TOptions,TDep>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

Configure<TDep1,TDep2,TDep3,TDep4,TDep5>(Action<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

Configure<TDep1,TDep2,TDep3,TDep4>(Action<TOptions,TDep1,TDep2,TDep3,TDep4>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

Configure<TDep1,TDep2,TDep3>(Action<TOptions,TDep1,TDep2,TDep3>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

Configure<TDep1,TDep2>(Action<TOptions,TDep1,TDep2>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

Configure(Action<TOptions>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

public:
 virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure (Action<TOptions> configureOptions);
abstract member Configure : Action<'Options (requires 'Options : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)>
override this.Configure : Action<'Options (requires 'Options : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)>
Public Overridable Function Configure (configureOptions As Action(Of TOptions)) As OptionsBuilder(Of TOptions)

参数

configureOptions
Action<TOptions>

用于配置选项的操作。The action used to configure the options.

返回

OptionsBuilder<TOptions>

当前的 OptionsBuilder<TOptions>The current OptionsBuilder<TOptions>.

适用于

Configure<TDep>(Action<TOptions,TDep>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep>
 where TDep : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep> (Action<TOptions,TDep> configureOptions) where TDep : class;
abstract member Configure : Action<'Options, 'Dep (requires 'Options : null and 'Dep : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'Dep : null)
override this.Configure : Action<'Options, 'Dep (requires 'Options : null and 'Dep : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'Dep : null)
Public Overridable Function Configure(Of TDep As Class) (configureOptions As Action(Of TOptions, TDep)) As OptionsBuilder(Of TOptions)

类型参数

TDep

操作使用的依赖项。A dependency used by the action.

参数

configureOptions
Action<TOptions,TDep>

用于配置选项的操作。The action used to configure the options.

返回

OptionsBuilder<TOptions>

当前的 OptionsBuilder<TOptions>The current OptionsBuilder<TOptions>.

适用于

Configure<TDep1,TDep2,TDep3,TDep4,TDep5>(Action<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep1, typename TDep2, typename TDep3, typename TDep4, typename TDep5>
 where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep1, TDep2, TDep3, TDep4, TDep5> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep1,TDep2,TDep3,TDep4,TDep5> (Action<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5> configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class where TDep5 : class;
abstract member Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3, 'TDep4, 'TDep5 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null and 'TDep5 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null and 'TDep5 : null)
override this.Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3, 'TDep4, 'TDep5 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null and 'TDep5 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null and 'TDep5 : null)
Public Overridable Function Configure(Of TDep1 As Class, TDep2 As Class, TDep3 As Class, TDep4 As Class, TDep5 As Class) (configureOptions As Action(Of TOptions, TDep1, TDep2, TDep3, TDep4, TDep5)) As OptionsBuilder(Of TOptions)

类型参数

TDep1

操作使用的第一个依赖项。The first dependency used by the action.

TDep2

操作使用的第二个依赖项。The second dependency used by the action.

TDep3

操作使用的第三个依赖项。The third dependency used by the action.

TDep4

操作使用的第四个依赖项。The fourth dependency used by the action.

TDep5

操作使用的第五个依赖项。The fifth dependency used by the action.

参数

configureOptions
Action<TOptions,TDep1,TDep2,TDep3,TDep4,TDep5>

用于配置选项的操作。The action used to configure the options.

返回

OptionsBuilder<TOptions>

当前的 OptionsBuilder<TOptions>The current OptionsBuilder<TOptions>.

适用于

Configure<TDep1,TDep2,TDep3,TDep4>(Action<TOptions,TDep1,TDep2,TDep3,TDep4>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep1, typename TDep2, typename TDep3, typename TDep4>
 where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep1, TDep2, TDep3, TDep4> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep1,TDep2,TDep3,TDep4> (Action<TOptions,TDep1,TDep2,TDep3,TDep4> configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class where TDep4 : class;
abstract member Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3, 'TDep4 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null)
override this.Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3, 'TDep4 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null and 'TDep4 : null)
Public Overridable Function Configure(Of TDep1 As Class, TDep2 As Class, TDep3 As Class, TDep4 As Class) (configureOptions As Action(Of TOptions, TDep1, TDep2, TDep3, TDep4)) As OptionsBuilder(Of TOptions)

类型参数

TDep1

操作使用的第一个依赖项。The first dependency used by the action.

TDep2

操作使用的第二个依赖项。The second dependency used by the action.

TDep3

操作使用的第三个依赖项。The third dependency used by the action.

TDep4

操作使用的第四个依赖项。The fourth dependency used by the action.

参数

configureOptions
Action<TOptions,TDep1,TDep2,TDep3,TDep4>

用于配置选项的操作。The action used to configure the options.

返回

OptionsBuilder<TOptions>

当前的 OptionsBuilder<TOptions>The current OptionsBuilder<TOptions>.

适用于

Configure<TDep1,TDep2,TDep3>(Action<TOptions,TDep1,TDep2,TDep3>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep1, typename TDep2, typename TDep3>
 where TDep1 : class where TDep2 : class where TDep3 : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep1, TDep2, TDep3> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep1,TDep2,TDep3> (Action<TOptions,TDep1,TDep2,TDep3> configureOptions) where TDep1 : class where TDep2 : class where TDep3 : class;
abstract member Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null)
override this.Configure : Action<'Options, 'TDep1, 'TDep2, 'TDep3 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null and 'TDep3 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null and 'TDep3 : null)
Public Overridable Function Configure(Of TDep1 As Class, TDep2 As Class, TDep3 As Class) (configureOptions As Action(Of TOptions, TDep1, TDep2, TDep3)) As OptionsBuilder(Of TOptions)

类型参数

TDep1

操作使用的第一个依赖项。The first dependency used by the action.

TDep2

操作使用的第二个依赖项。The second dependency used by the action.

TDep3

操作使用的第三个依赖项。The third dependency used by the action.

参数

configureOptions
Action<TOptions,TDep1,TDep2,TDep3>

用于配置选项的操作。The action used to configure the options.

返回

OptionsBuilder<TOptions>

当前的 OptionsBuilder<TOptions>The current OptionsBuilder<TOptions>.

适用于

Configure<TDep1,TDep2>(Action<TOptions,TDep1,TDep2>)

注册用于配置特定类型的选项的操作。Registers an action used to configure a particular type of options. 这些都在所有 PostConfigure(Action<TOptions>) 之前运行。These are run before all PostConfigure(Action<TOptions>).

public:
generic <typename TDep1, typename TDep2>
 where TDep1 : class where TDep2 : class virtual Microsoft::Extensions::Options::OptionsBuilder<TOptions> ^ Configure(Action<TOptions, TDep1, TDep2> ^ configureOptions);
public virtual Microsoft.Extensions.Options.OptionsBuilder<TOptions> Configure<TDep1,TDep2> (Action<TOptions,TDep1,TDep2> configureOptions) where TDep1 : class where TDep2 : class;
abstract member Configure : Action<'Options, 'TDep1, 'TDep2 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null)
override this.Configure : Action<'Options, 'TDep1, 'TDep2 (requires 'Options : null and 'TDep1 : null and 'TDep2 : null)> -> Microsoft.Extensions.Options.OptionsBuilder<'Options (requires 'Options : null)> (requires 'TDep1 : null and 'TDep2 : null)
Public Overridable Function Configure(Of TDep1 As Class, TDep2 As Class) (configureOptions As Action(Of TOptions, TDep1, TDep2)) As OptionsBuilder(Of TOptions)

类型参数

TDep1

操作使用的第一个依赖项。The first dependency used by the action.

TDep2

操作使用的第二个依赖项。The second dependency used by the action.

参数

configureOptions
Action<TOptions,TDep1,TDep2>

用于配置选项的操作。The action used to configure the options.

返回

OptionsBuilder<TOptions>

当前的 OptionsBuilder<TOptions>The current OptionsBuilder<TOptions>.

适用于