Microsoft.AspNetCore.Mvc.ViewComponents Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides types for working with view components.
Classes
ContentViewComponentResult |
An IViewComponentResult which writes text when executed. |
DefaultViewComponentActivator |
A default implementation of IViewComponentActivator. |
DefaultViewComponentDescriptorCollectionProvider |
A default implementation of IViewComponentDescriptorCollectionProvider |
DefaultViewComponentDescriptorProvider |
Default implementation of IViewComponentDescriptorProvider. |
DefaultViewComponentFactory |
Default implementation for IViewComponentFactory. |
DefaultViewComponentHelper |
Default implementation for IViewComponentHelper. |
DefaultViewComponentInvoker |
Default implementation for IViewComponentInvoker. |
DefaultViewComponentInvokerFactory | |
DefaultViewComponentSelector |
Default implementation of IViewComponentSelector. |
HtmlContentViewComponentResult |
An IViewComponentResult which writes an IHtmlContent when executed. |
ServiceBasedViewComponentActivator |
A IViewComponentActivator that retrieves view components as services from the request's IServiceProvider. |
ViewComponentContext |
A context for view components. |
ViewComponentContextAttribute |
Specifies that a controller property should be set with the current ViewComponentContext when creating the view component. The property must have a public set method. |
ViewComponentConventions |
Static class that adds standard view component convention methods. This class cannot be inherited. |
ViewComponentDescriptor |
A descriptor for a view component. |
ViewComponentDescriptorCollection |
A cached collection of ViewComponentDescriptor. |
ViewComponentFeature |
The list of view component types in an MVC application.The ViewComponentFeature can be populated using the ApplicationPartManager that is available during startup at PartManager and PartManager or at a later stage by requiring the ApplicationPartManager as a dependency in a component. |
ViewComponentFeatureProvider |
Discovers view components from a list of ApplicationPart instances. |
ViewViewComponentResult |
A IViewComponentResult that renders a partial view when executed. |
Interfaces
IViewComponentActivator |
Provides methods to instantiate and release a ViewComponent. |
IViewComponentDescriptorCollectionProvider |
Provides the currently cached collection of ViewComponentDescriptor. |
IViewComponentDescriptorProvider |
Discovers the view components in the application. |
IViewComponentFactory |
Provides methods for creation and disposal of view components. |
IViewComponentInvoker |
Specifies the contract for execution of a view component. |
IViewComponentInvokerFactory |
Interface that exposes the ability to create an IViewComponentInvoker. |
IViewComponentSelector |
Selects a view component based on a view component name. |
Remarks
For more information about view components, see View components in ASP.NET Core.