MvcServiceCollectionExtensions.AddMvc 메서드

정의

오버로드

AddMvc(IServiceCollection)

지정된 IServiceCollection에 MVC 서비스를 추가합니다.

AddMvc(IServiceCollection, Action<MvcOptions>)

지정된 IServiceCollection에 MVC 서비스를 추가합니다.

AddMvc(IServiceCollection)

지정된 IServiceCollection에 MVC 서비스를 추가합니다.

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvc (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddMvc : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddMvc (services As IServiceCollection) As IMvcBuilder

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

반환

IMvcBuilder MVC 서비스를 추가로 구성하는 데 사용할 수 있는 입니다.

적용 대상

AddMvc(IServiceCollection, Action<MvcOptions>)

지정된 IServiceCollection에 MVC 서비스를 추가합니다.

public static Microsoft.Extensions.DependencyInjection.IMvcBuilder AddMvc (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Mvc.MvcOptions> setupAction);
static member AddMvc : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Mvc.MvcOptions> -> Microsoft.Extensions.DependencyInjection.IMvcBuilder
<Extension()>
Public Function AddMvc (services As IServiceCollection, setupAction As Action(Of MvcOptions)) As IMvcBuilder

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.

setupAction
Action<MvcOptions>

제공된 MvcOptions를 구성하는 Action<T>입니다.

반환

IMvcBuilder MVC 서비스를 추가로 구성하는 데 사용할 수 있는 입니다.

적용 대상