MvcCoreMvcBuilderExtensions MvcCoreMvcBuilderExtensions MvcCoreMvcBuilderExtensions Class

Definition

Extensions for configuring MVC using an IMvcBuilder.

public static class MvcCoreMvcBuilderExtensions
type MvcCoreMvcBuilderExtensions = class
Public Module MvcCoreMvcBuilderExtensions
Inheritance
MvcCoreMvcBuilderExtensionsMvcCoreMvcBuilderExtensionsMvcCoreMvcBuilderExtensions

Methods

AddApplicationPart(IMvcBuilder, Assembly) AddApplicationPart(IMvcBuilder, Assembly) AddApplicationPart(IMvcBuilder, Assembly)

Adds an ApplicationPart to the list of ApplicationParts on the PartManager.

AddControllersAsServices(IMvcBuilder) AddControllersAsServices(IMvcBuilder) AddControllersAsServices(IMvcBuilder)

Registers discovered controllers as services in the IServiceCollection.

AddFormatterMappings(IMvcBuilder, Action<FormatterMappings>) AddFormatterMappings(IMvcBuilder, Action<FormatterMappings>) AddFormatterMappings(IMvcBuilder, Action<FormatterMappings>)
AddMvcOptions(IMvcBuilder, Action<MvcOptions>) AddMvcOptions(IMvcBuilder, Action<MvcOptions>) AddMvcOptions(IMvcBuilder, Action<MvcOptions>)

Registers an action to configure MvcOptions.

ConfigureApiBehaviorOptions(IMvcBuilder, Action<ApiBehaviorOptions>) ConfigureApiBehaviorOptions(IMvcBuilder, Action<ApiBehaviorOptions>) ConfigureApiBehaviorOptions(IMvcBuilder, Action<ApiBehaviorOptions>)

Configures ApiBehaviorOptions.

ConfigureApplicationPartManager(IMvcBuilder, Action<ApplicationPartManager>) ConfigureApplicationPartManager(IMvcBuilder, Action<ApplicationPartManager>) ConfigureApplicationPartManager(IMvcBuilder, Action<ApplicationPartManager>)

Configures the ApplicationPartManager of the PartManager using the given Action<T>.

SetCompatibilityVersion(IMvcBuilder, CompatibilityVersion) SetCompatibilityVersion(IMvcBuilder, CompatibilityVersion) SetCompatibilityVersion(IMvcBuilder, CompatibilityVersion)

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

Applies to