MvcCoreMvcCoreBuilderExtensions.SetCompatibilityVersion(IMvcCoreBuilder, CompatibilityVersion) MvcCoreMvcCoreBuilderExtensions.SetCompatibilityVersion(IMvcCoreBuilder, CompatibilityVersion) MvcCoreMvcCoreBuilderExtensions.SetCompatibilityVersion(IMvcCoreBuilder, CompatibilityVersion) MvcCoreMvcCoreBuilderExtensions.SetCompatibilityVersion(IMvcCoreBuilder, CompatibilityVersion) Method

Definition

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IMvcCoreBuilder ^ SetCompatibilityVersion(Microsoft::Extensions::DependencyInjection::IMvcCoreBuilder ^ builder, Microsoft::AspNetCore::Mvc::CompatibilityVersion version);
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
<Extension()>
Public Function SetCompatibilityVersion (builder As IMvcCoreBuilder, version As CompatibilityVersion) As IMvcCoreBuilder

Parameters

Returns

Applies to