Microsoft.AspNetCore.Mvc.ViewComponents Namespace¶
-
namespace
Microsoft.AspNetCore.Mvc.ViewComponents¶ Interfaces
- interface
IViewComponentActivator - Provides methods to instantiate and release a ViewComponent.
- interface
IViewComponentDescriptorCollectionProvider - Provides the currently cached collection of
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor. - interface
IViewComponentDescriptorProvider - Discovers the view components in the application.
- interface
IViewComponentFactory - Provides methods for creation and disposal of view components.
- interface
IViewComponentInvoker - Specifies the contract for execution of a view component.
- interface
IViewComponentInvokerFactory - interface
IViewComponentSelector - Selects a view component based on a view component name.
Classes
- class
ContentViewComponentResult - An
Microsoft.AspNetCore.Mvc.IViewComponentResultwhich writes text when executed. - class
DefaultViewComponentActivator - A default implementation of
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentActivator. - class
DefaultViewComponentDescriptorCollectionProvider - A default implementation of
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider - class
DefaultViewComponentDescriptorProvider - Default implementation of
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorProvider. - class
DefaultViewComponentFactory - Default implementation for
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentFactory. - class
DefaultViewComponentHelper - Default implementation for
Microsoft.AspNetCore.Mvc.IViewComponentHelper. - class
DefaultViewComponentInvoker - Default implementation for
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvoker. - class
DefaultViewComponentInvokerFactory - class
DefaultViewComponentSelector - Default implementation of
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentSelector. - class
HtmlContentViewComponentResult - An
Microsoft.AspNetCore.Mvc.IViewComponentResultwhich writes anMicrosoft.AspNetCore.Html.IHtmlContentwhen executed. - class
ServiceBasedViewComponentActivator - A
Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentActivatorthat retrieves view components as services from the request’sSystem.IServiceProvider. - class
ViewComponentContext - A context for view components.
- class
ViewComponentContextAttribute - Specifies that a controller property should be set with the current
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContextwhen creating the view component. The property must have a public set method. - class
ViewComponentConventions - class
ViewComponentDescriptor - A descriptor for a view component.
- class
ViewComponentDescriptorCollection - A cached collection of
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentDescriptor. - class
ViewComponentFeature - The list of view component types in an MVC application.The
Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentFeaturecan be populated using theMicrosoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManagerthat is available during startup atMicrosoft.Extensions.DependencyInjection.IMvcBuilder.PartManagerandMicrosoft.Extensions.DependencyInjection.IMvcCoreBuilder.PartManageror at a later stage by requiring theMicrosoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManageras a dependency in a component. - class
ViewComponentFeatureProvider - Discovers view components from a list of
Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartinstances. - class
ViewViewComponentResult - A
Microsoft.AspNetCore.Mvc.IViewComponentResultthat renders a partial view when executed.
- interface