ConfigureCompatibilityOptions<TOptions> 类

定义

注意

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

实现 ASP.NET Core MVC 对 CompatibilityVersion的支持的基础结构的基类。 这是框架基础结构,不应由应用程序代码使用。

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)

类型参数

TOptions
继承
ConfigureCompatibilityOptions<TOptions>
属性
实现

构造函数

ConfigureCompatibilityOptions<TOptions>(ILoggerFactory, IOptions<MvcCompatibilityOptions>)
已过时.

创建一个新的 ConfigureCompatibilityOptions<TOptions>

属性

DefaultValues
已过时.

获取与配置 CompatibilityVersion的应用程序关联的兼容性开关的默认值。

Version
已过时.

CompatibilityVersion获取为应用程序配置的 。

方法

PostConfigure(String, TOptions)
已过时.

实现 ASP.NET Core MVC 对 CompatibilityVersion的支持的基础结构的基类。 这是框架基础结构,不应由应用程序代码使用。

适用于