IViewComponentFactory.CreateViewComponent(ViewComponentContext) Method     
Definition
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.
Creates a new view component for the specified context.
public:
 System::Object ^ CreateViewComponent(Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentContext ^ context);public object CreateViewComponent(Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context);abstract member CreateViewComponent : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext -> objPublic Function CreateViewComponent (context As ViewComponentContext) As ObjectParameters
- context
- ViewComponentContext
ViewComponentContext for the view component.
Returns
The view component.