Sdílet prostřednictvím


MvcCoreMvcBuilderExtensions.SetCompatibilityVersion Metoda

Definice

Upozornění

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

CompatibilityVersion Nastaví pro ASP.NET Core MVC pro aplikaci.

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder SetCompatibilityVersion (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.CompatibilityVersion version);
[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 static Microsoft.Extensions.DependencyInjection.IMvcBuilder SetCompatibilityVersion (this Microsoft.Extensions.DependencyInjection.IMvcBuilder builder, Microsoft.AspNetCore.Mvc.CompatibilityVersion version);
static member SetCompatibilityVersion : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Microsoft.AspNetCore.Mvc.CompatibilityVersion -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
[<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}")>]
static member SetCompatibilityVersion : Microsoft.Extensions.DependencyInjection.IMvcBuilder * Microsoft.AspNetCore.Mvc.CompatibilityVersion -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function SetCompatibilityVersion (builder As IMvcBuilder, version As CompatibilityVersion) As IMvcBuilder

Parametry

builder
IMvcBuilder

Hodnota IMvcBuilder

version
CompatibilityVersion

Hodnota CompatibilityVersion , která se má konfigurovat.

Návraty

Hodnota IMvcBuilder

Atributy

Platí pro