MvcServiceCollectionExtensions.AddMvc 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
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 서비스를 추가로 구성하는 데 사용할 수 있는 입니다.