共用方式為


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 。 這是架構基礎結構,不應由應用程式程式碼使用。

適用於