ControllerFeature Class¶
The list of controllers types in an MVC application. The Microsoft.AspNetCore.Mvc.Controllers.ControllerFeature can be populated
using the Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager that is available during startup at Microsoft.Extensions.DependencyInjection.IMvcBuilder.PartManager
and Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder.PartManager or at a later stage by requiring the Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager
as a dependency in a component.
- Namespace
Microsoft.AspNetCore.Mvc.Controllers- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Properties¶
-
Microsoft.AspNetCore.Mvc.Controllers.ControllerFeature.Controllers¶ Gets the list of controller types in an MVC application.
Return type: System.Collections.Generic.IList<System.Reflection.TypeInfo> public IList<TypeInfo> Controllers { get; }
-