다음을 통해 공유


MvcCoreMvcBuilderExtensions.SetCompatibilityVersion 메서드

정의

주의

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

CompatibilityVersion 애플리케이션의 ASP.NET Core MVC에 대한 를 설정합니다.

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

매개 변수

version
CompatibilityVersion

구성할 값입니다 CompatibilityVersion .

반환

IMvcBuilder

특성

적용 대상