MvcCompatibilityOptions 类

定义

注意

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

用于配置应用程序 CompatibilityVersion的选项类型。

public ref class MvcCompatibilityOptions
public class MvcCompatibilityOptions
[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 class MvcCompatibilityOptions
type MvcCompatibilityOptions = class
[<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 MvcCompatibilityOptions = class
Public Class MvcCompatibilityOptions
继承
MvcCompatibilityOptions
属性

注解

配置应用程序 CompatibilityVersion 的主要方法是调用 SetCompatibilityVersion(IMvcBuilder, CompatibilityVersion)SetCompatibilityVersion(IMvcCoreBuilder, CompatibilityVersion)

构造函数

MvcCompatibilityOptions()
已过时.

用于配置应用程序 CompatibilityVersion的选项类型。

属性

CompatibilityVersion
已过时.

获取或设置应用程序的配置 CompatibilityVersion

适用于