ViewComponentFeature Class¶
The list of view component types in an MVC application.The Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentFeature 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.ViewComponents- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Syntax¶
public class ViewComponentFeature
-
class
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentFeature
Properties¶
-
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentFeature.ViewComponents¶ Gets the list of view component types in an MVC application.
Return type: System.Collections.Generic.IList<System.Reflection.TypeInfo> public IList<TypeInfo> ViewComponents { get; }
-