Прочетете на английски

Споделяне чрез


IConfigureContextualOptions<TOptions> Interface

Definition

Provides functionality to configure the TOptions type.

C#
public interface IConfigureContextualOptions<in TOptions> : IDisposable where TOptions : class

Type Parameters

TOptions

The type of options 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.
Implements

Methods

Configure(TOptions)

Configures a TOptions instance.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from IDisposable)

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)