MvcCoreMvcBuilderExtensions.SetCompatibilityVersion(IMvcBuilder, CompatibilityVersion) MvcCoreMvcBuilderExtensions.SetCompatibilityVersion(IMvcBuilder, CompatibilityVersion) MvcCoreMvcBuilderExtensions.SetCompatibilityVersion(IMvcBuilder, CompatibilityVersion) Method

Definition

Sets the CompatibilityVersion for ASP.NET Core MVC for the application.

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
<Extension()>
Public Function SetCompatibilityVersion (builder As IMvcBuilder, version As CompatibilityVersion) As IMvcBuilder
Parameters
Returns

Applies to