Lire en anglais

Partager via


IOptions<TOptions> Interface

Definition

Used to retrieve configured TOptions instances.

public interface IOptions<out TOptions> where TOptions : class

Type Parameters

TOptions

The type of options being requested.

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

Properties

Value

The default configured TOptions instance

Applies to

Produit Versions
.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)