Aracılığıyla paylaş


MvcCoreMvcCoreBuilderExtensions.SetCompatibilityVersion Yöntem

Tanım

Dikkat

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

CompatibilityVersion Uygulama için ASP.NET Core MVC için öğesini ayarlar.

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

Parametreler

version
CompatibilityVersion

CompatibilityVersion Yapılandırılan değer.

Döndürülenler

IMvcCoreBuilder.

Öznitelikler

Şunlara uygulanır