ViewViewComponentResult.Execute(ViewComponentContext) Metoda

Definice

Vyhledá a vykreslí zobrazení určené uživatelem ViewName. Pokud ViewName je hodnota null, název zobrazení, který hledáte, je Výchozí.

public:
 virtual void Execute(Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentContext ^ context);
public void Execute (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context);
abstract member Execute : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext -> unit
override this.Execute : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext -> unit
Public Sub Execute (context As ViewComponentContext)

Parametry

context
ViewComponentContext

Spuštění ViewComponentContext aktuální komponenty.

Implementuje

Poznámky

Tato metoda synchronně volá a blokuje .ExecuteAsync(ViewComponentContext)

Platí pro