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.

generic <typename TOptions>
 where TOptions : class, IEnumerable<ICompatibilitySwitch ^>public ref class ConfigureCompatibilityOptions abstract : Microsoft::Extensions::Options::IPostConfigureOptions<TOptions>
public abstract class ConfigureCompatibilityOptions<TOptions> : Microsoft.Extensions.Options.IPostConfigureOptions<TOptions> where TOptions : class, IEnumerable<ICompatibilitySwitch>
[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 ConfigureCompatibilityOptions<#seq<ICompatibilitySwitch>> = class
    interface IPostConfigureOptions<#seq<ICompatibilitySwitch>>
[<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}")>]
type ConfigureCompatibilityOptions<#seq<ICompatibilitySwitch>> = class
    interface IPostConfigureOptions<#seq<ICompatibilitySwitch>>
Public MustInherit Class ConfigureCompatibilityOptions(Of TOptions)
Implements IPostConfigureOptions(Of TOptions)

Type Parameters

TOptions
Inheritance
ConfigureCompatibilityOptions<TOptions>
Attributes
Implements

Constructors

ConfigureCompatibilityOptions<TOptions>(ILoggerFactory, IOptions<MvcCompatibilityOptions>)

Creates a new ConfigureCompatibilityOptions<TOptions>.

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