Lezen in het Engels

Delen via


ConfigureCompatibilityOptions<TOptions> Class

Definition

Caution

This API is obsolete and will be removed in a future version. Consider removing usages.

A base class for infrastructure that implements ASP.NET Core MVC's support for CompatibilityVersion. This is framework infrastructure and should not be used by application code.

C#
public abstract class ConfigureCompatibilityOptions<TOptions> : Microsoft.Extensions.Options.IPostConfigureOptions<TOptions> where TOptions : class, IEnumerable<ICompatibilitySwitch>
C#
[System.Obsolete("This API is obsolete and will be removed in a future version. Consider removing usages.", DiagnosticId="ASP5001", UrlFormat="https://aka.ms/aspnetcore-warnings/{0}")]
public abstract class ConfigureCompatibilityOptions<TOptions> : Microsoft.Extensions.Options.IPostConfigureOptions<TOptions> where TOptions : class, IEnumerable<ICompatibilitySwitch>

Type Parameters

TOptions
Inheritance
ConfigureCompatibilityOptions<TOptions>
Attributes
Implements

Constructors

Properties

DefaultValues

Gets the default values of compatibility switches associated with the applications configured CompatibilityVersion.

Version

Gets the CompatibilityVersion configured for the application.

Methods

PostConfigure(String, TOptions)

Invoked to configure a TOptions instance.

Applies to

Product Versies (Verouderd)
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0 (6.0, 7.0, 8.0, 9.0)