ConfigureNamedOptions<TOptions> Class

Definition

C#
public class ConfigureNamedOptions<TOptions> : Microsoft.Extensions.Options.IConfigureNamedOptions<TOptions>, Microsoft.Extensions.Options.IConfigureOptions<TOptions> where TOptions : class

Type Parameters

TOptions

Options type being configured.

Inheritance
ConfigureNamedOptions<TOptions>
Derived
Implements

Constructors

Properties

Action

Gets the configuration action.

Name

Gets the options name.

Methods

Configure(String, TOptions)

Invokes the registered configure Action if the name matches.

Configure(TOptions)

Configures a TOptions instance with the DefaultName.

Applies to

Produk Versi
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)