Leer en inglés

Compartir a través de


IConfigureOptions<TOptions> Interface

Definition

Represents something that configures the TOptions type.

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

Remarks

These are run before all IPostConfigureOptions<TOptions>.

Methods

Configure(TOptions)

Configures a TOptions instance.

Applies to

Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)