Udostępnij za pośrednictwem


DefaultViewComponentFactory.CreateViewComponent(ViewComponentContext) Metoda

Definicja

Tworzy nowy kontroler dla określonego contextelementu .

public:
 virtual 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
override this.CreateViewComponent : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext -> obj
Public Function CreateViewComponent (context As ViewComponentContext) As Object

Parametry

context
ViewComponentContext

ViewComponentContext dla składnika widoku.

Zwraca

Składnik widoku.

Implementuje

Dotyczy