IConfigureOptions<TOptions> Interface

Definition

Represents something that configures the TOptions type. Note: These are run before all IPostConfigureOptions<TOptions>.

C#
public interface IConfigureOptions<in TOptions> where TOptions : class

Type Parameters

TOptions

The options type being configured.

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Derived

Methods

Configure(TOptions)

Invoked to configure a TOptions instance.

Applies to

Prodotto Versioni
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)