IViewComponentFactory.CreateViewComponent(ViewComponentContext) 方法

定义

为指定的 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 -> obj
Public Function CreateViewComponent (context As ViewComponentContext) As Object

参数

context
ViewComponentContext

ViewComponentContext 视图组件。

返回

视图组件。

适用于