Share via


MvcCompatibilityOptions Class

Definition

Caution

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

An options type for configuring the application 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
Inheritance
MvcCompatibilityOptions
Attributes

Remarks

The primary way to configure the application's CompatibilityVersion is by calling SetCompatibilityVersion(IMvcBuilder, CompatibilityVersion) or SetCompatibilityVersion(IMvcCoreBuilder, CompatibilityVersion).

Constructors

MvcCompatibilityOptions()

Properties

CompatibilityVersion

Gets or sets the application's configured CompatibilityVersion.

Applies to