共用方式為


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

適用於